(()=>{"use strict";var e,r={},t={};function o(e){var n=t[e];if(void 0!==n)return n.exports;var i=t[e]={exports:{}};return r[e].call(i.exports,i,i.exports,o),i.exports}o.m=r,e=[],o.O=(r,t,n,i)=>{if(!t){var l=1/0;for(s=0;s=i)&&Object.keys(o.O).every((e=>o.O[e](t[u])))?t.splice(u--,1):(a=!1,i0&&e[s-1][2]>i;s--)e[s]=e[s-1];e[s]=[t,n,i]},o.n=e=>{var r=e&&e.__esModule?()=>e.default:()=>e;return o.d(r,{a:r}),r},o.d=(e,r)=>{for(var t in r)o.o(r,t)&&!o.o(e,t)&&Object.defineProperty(e,t,{enumerable:!0,get:r[t]})},o.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),o.o=(e,r)=>Object.prototype.hasOwnProperty.call(e,r),o.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},(()=>{var e={121:0};o.O.j=r=>0===e[r];var r=(r,t)=>{var n,i,l=t[0],a=t[1],u=t[2],f=0;if(l.some((r=>0!==e[r]))){for(n in a)o.o(a,n)&&(o.m[n]=a[n]);if(u)var s=u(o)}for(r&&r(t);f{"use strict";i.r(t),i.d(t,{ABTest:()=>Z.Ay,ADDON_SCRIPT_VERSION:()=>ne,CE_API:()=>_i,CommonEventHandlers:()=>ts,Emitter:()=>Qe.v,ExitIntent:()=>Si,FormData:()=>at.f,Goal:()=>X.A,IndexedDB:()=>a.mc,JSON:()=>es,NativeURL:()=>Zi,Preview:()=>ze,READY_STATE_PATTERN:()=>yt,Tracker:()=>Xi,URL:()=>ct.j,addListener:()=>r.ch,addTag:()=>r.Ap,addToCart:()=>ji,benchmark:()=>o.aE,benchmarkEnabled:()=>o.$J,botDetector:()=>mt,checkoutCompleted:()=>Gi,clearIdentity:()=>Et.SY,click:()=>r.jM,consent:()=>a.vJ,converted:()=>Wi.H$,cookieStorage:()=>ue.i,customEvent:()=>r.ex,debug:()=>o.Yz,debug2:()=>o.cC,debug2Enabled:()=>o.$Q,debugEnabled:()=>o.dK,debugError:()=>Ze.A,decreaseSessionWorth:()=>Et.LV,deleteCookie:()=>r.Yj,domReadySetup:()=>It,each:()=>r.__,errorTracking:()=>Ze.o,evaluateSegmentEvent:()=>$e.Bi,fp:()=>is,get:()=>se.get,getCensoredElements:()=>rt,getCookie:()=>r.Ri,getCookieMode:()=>a.mr,getCookies:()=>r.OR,getLastFlow:()=>ie.lD,getLastFlowData:()=>ie.hN,getSegmentTracker:()=>$e.MH,getSession:()=>Mi,getSessionId:()=>Fi,goalConversion:()=>Wi.og,goalIdString:()=>Wi.CT,hasFeature:()=>r.jI,http:()=>se,hudMain:()=>pt,identify:()=>Et.ls,ignore:()=>r.Xe,increaseSessionWorth:()=>Et.vn,isBot:()=>wt,isConsent:()=>a.VK,listen:()=>r.KT,loadAddonScript:()=>Ee,loadAddonThirdpartyScript:()=>fe,loadHUD:()=>ut,matchURL:()=>ot.$,matchesAddon:()=>je,matchesLegacyOrSegments:()=>$e.mF,matchesSelector:()=>r.B5,matchesTrigger:()=>Be._9,nextGoalConversionValue:()=>Wi.uw,notifyError:()=>yi,onDOMReady:()=>_t,pagesTracker:()=>ei,parseNumberString:()=>zi.s,promisePool:()=>et,remoteLog:()=>st,removeListener:()=>r.pQ,resetSession:()=>Bi,set:()=>r.hZ,setCurrency:()=>Wi.MN,setRecordingsSamplingRate:()=>Ut,setSessionWorth:()=>Et.LG,showCTA:()=>Ue,showFeedbackSurvey:()=>De,showSurvey:()=>Ae,startCheckout:()=>Yi,startRecording:()=>Mt,stopRecording:()=>Bt,testModeCheck:()=>r.ou,traceLog:()=>o.aQ,trackSurveyResponse:()=>Je,triggerAddons:()=>We,updateSegmentState:()=>$e.ww,userDataMain:()=>wi,userMainTestMode:()=>vi,uuid_v1:()=>Xe.O,writeCookie:()=>r.o});var s={};i.r(s),i.d(s,{previewHandler:()=>ke,showFeedbackSurvey:()=>De,showSurvey:()=>Ae,trigger:()=>Oe});var n={};i.r(n),i.d(n,{previewHandler:()=>Ve,showCTA:()=>Ue,trigger:()=>Me});i(5102);var r=i(390),o=i(884),a=i(98);"undefined"==typeof CE2&&(globalThis.CE2={}),CE2.userDataToJs=function(){const e=[["uid","uid"],["snapshots","snapshots"],["status","status"],["flows","flows"],["sites","sites"],["USER_SCRIPT_VERSION","updated_at"],["__CE_HOST__","ce_app_url"],["COMMON_SCRIPT","common_script_url"],["COMMON_SCRIPT_SECURE","common_script_url"],["TRACKING_SCRIPT","tracking_script_url"],["TRACKING_SCRIPT_SECURE","tracking_script_url"],["AUTH_KEY","hud_auth_key"],["HUD","hud"],["GLOBAL_IP_BLOCK_LIST","global_ip_block_list"],["IS_USING_IP_BLOCKING","is_using_ip_blocking"],["TRACKING_DEST_NEW","v6_tracking_dest"],["TRACKING_DEST_NEW_SECURE","v6_secure_tracking_dest"],["DEST_V11","v11_tracking_dest"],["FT_DEST","flow_tracking_dest"],["PAGE_VIEWS_LIMIT_REACHED","page_views_limit_reached"],["NUMBER_OF_RECORDINGS","recordings_number"],["RECORDINGS_ACTIVATION","recordings_activation"],["ERROR_TRACKING","error_tracking"],["DEST_ERRORS_API","error_tracking_dest"],["DEST_ERRORS_API_DOMAIN","error_tracking_script_url"]];for(let t=0;tl(i)})}CE2.getNativeXMLHttpRequest=function(){return new CE2.Native.XMLHttpRequest},"undefined"!=typeof Prototype&&(0,o.Yz)("[Loading] WARNING: Prototype.js library detected, it can cause tracking issues"),(0,o.Yz)(`[Loading] Cookie mode=${(0,a.mr)()}`),CE2.sessionTags=[],CE2.p={},CE2.state.ignoredElements=[],CE2.state.clickCaptors=[],CE2.state.logHistory=[],CE2.state.logHistoryEnabled=!1,CE2.state.userData=[],CE2.getBox||(CE2.getBox=()=>{}),CE2.getUserDataTime||(CE2.getUserDataTime=function(){if(window.performance&&performance.getEntriesByType){var e=performance.getEntriesByType("navigation");if(e&&e[0])return"back_forward"===e[0].type?parseInt(+new Date/3e5,10):1}return parseInt(+new Date/36e5,10)}),CE2.loadScript||(CE2.loadScript=function(e,t){const i=document.createElement("script");i.src=e,i.type="text/javascript",i.async=!0,i.onload=()=>{t&&t()},document.head.append(i)}),CE2.loadTrackingScript||(CE2.loadTrackingScript=function(e){return e()}),CE2.loadSessionTrackingScript||(CE2.loadSessionTrackingScript=function(e){return e()}),CE2.w&&!CE2.w.CE_URL_FINGERPRINT&&(CE2.w.CE_URL_FINGERPRINT=function(){const{host:e}=CE2.w.location;let{pathname:t}=CE2.w.location;return t=t.split("/").map((e=>e.replace(/^([\d]+|(.*(\d.*){2}))$/,"*"))).join("/"),`${e.replace(/^(www|m)\./i,"")}${t}`.toLowerCase().replace(/\/$/,"")}),CE2.autoStart=CE2.w&&("undefined"==typeof CE_MANUAL_START||!CE_MANUAL_START),CE2.loadTrackingScript||(CE2.loadTrackingScript=function(e){return e()}),CE2.loadSessionTrackingScript||(CE2.loadSessionTrackingScript=function(e){return e()}),CE2.w&&(CE2.loadCEAPI=function(){CE2.w.CE_API=CE2.CE_API(CE2.w.CE_API)});const u="[\\s\\u00a0\\u2028\\u2029]+";let h;if("undefined"!=typeof Intl&&Intl.Segmenter)try{h=new Intl.Segmenter}catch(e){}const g={whitespace:new RegExp(u,"g"),strip:new RegExp(`^${u}|${u}$`,"g"),href:/\bhref="(.*?)"/i,ipHost:/^([\d\.]+|\[[a-f\d:]+\])$/i,allChars:/\p{RI}\p{RI}|\p{Emoji}(\p{EMod}|\u{FE0F}\u{20E3}?|[\u{E0020}-\u{E007E}]+\u{E007F})?(\u{200D}\p{Emoji}(\p{EMod}|\u{FE0F}\u{20E3}?|[\u{E0020}-\u{E007E}]+\u{E007F})?)*|./gsu};function p(e,t){const i=e.replace(g.strip,"");return t?i.replace(g.whitespace," "):i}const E=2048,f=65535-E;let m,C;function v(e){const t=(e=e||window).document;return C!==e.location.pathname&&(m=function(e){const t=e.defaultView,i=e.documentElement;if(i.scrollHeight>t.innerHeight)return e.scrollingElement?e.scrollingElement:"BackCompat"===e.compatMode?e.body:i;if(!e.querySelectorAll||"number"!=typeof e.body.scrollHeight)return;const{body:s}=e,n=Array.from(e.querySelectorAll("html, body, body *")).filter((e=>!e.ownerSVGElement)),r=s.getElementsByTagName("*").length;for(let e=0,i=Math.min(7e3,n.length);e=i.scrollHeight)continue;if(!(i.offsetWidth||i.offsetHeight||i.getClientRects().length))continue;if(i.getElementsByTagName("*").length/r<.5)continue;if(i.clientHeight>window.innerHeight)continue;const s=i.getBoundingClientRect();if(!(Math.floor(s.width||s.right-s.left)<.75*t.innerWidth||Math.floor(s.height||s.bottom-s.top)<.75*t.innerHeight))return i}}(t),C=e.location.pathname),m=m||("BackCompat"===t.compatMode?t.body:t.documentElement),{left:m.scrollLeft,top:m.scrollTop,width:e.innerWidth,height:e.innerHeight}}const w={};w.opera=w.ie=w.chrome=w.safari=w.firefox=!1,w.browser="unknown";const y="undefined"!=typeof window?window:{},S="undefined"!=typeof navigator?navigator:{},b=S.userAgent;function _(e,t){const i=Math.min(t.width,t.height),s=p(e.coords,!0).split(/[^\d\.%]+/).map((e=>function(e,t){let i=parseInt(e,10);return-1!=e.indexOf("%")&&(i*=.01*t),isNaN(i)?null:i}(e,i)));let n,r,o;if(!/circle/i.test(e.shape)){n=[],r=[];for(let e=0,t=s.length;e=3)return[n,r,o]=s,{left:n-o,top:r-o,width:2*o,height:2*o}}function I(e){const t=function(e){const t=new RegExp(`(^|#)${e.parentNode.name}`,"i"),i=e.ownerDocument.getElementsByTagName("IMG");let s,n;for(s=0;n=i[s++];)if(t.test(n.useMap))return n}(e);if(!t)return;const i=k(t),s=_(e,i);return s?{left:i.left+s.left,top:i.top+s.top,width:s.width,height:s.height}:void 0}function k(e,t,i,{usePseudo:s=!1}={}){let n;if(t=t||{},"AREA"==e.nodeName)n=I(e),n&&(t.left=n.left,t.top=n.top,t.width=n.width,t.height=n.height);else if(e.getBoundingClientRect){n=e.getBoundingClientRect();const i=v();if(t.left=Math.floor(n.left+i.left),t.top=Math.floor(n.top+i.top),w.webkit&&w.webkitVersion<533&&"relative"==e.style.position&&(t.left+=parseInt(e.style.left,10),t.top+=parseInt(e.style.top,10)),t.width=Math.floor(n.width||n.right-n.left),t.height=Math.floor(n.height||n.bottom-n.top),s&&(0===t.width||0===t.height)){const i=function(e){let t,i;for(let s=0,n=["::before","::after"];se.nodeType===Node.TEXT_NODE))))}y.opera&&"function"==typeof y.opera.version?(w.browser="opera",w.opera=!0,w.operaVersion=parseInt(y.opera.version(),10)):/\bMSIE\b/.test(b)?(w.browser="ie",w.ie=!0,w.ieVersion=parseInt(/MSIE (\d+)\.\d+/.exec(S.userAgent)[1],10),w.ieQuirksMode="BackCompat"==document.compatMode):/\b(iPhone|iP[ao]d)\b/.test(b)?(w.browser="iphone",w.iphone=!0,w.webkit=!0):/\bChrome\b/.test(b)?(w.browser="chrome",w.chrome=!0,w.webkit=!0):/AppleWebKit/.test(S.appVersion)?(w.browser="safari",w.safari=!0,w.webkit=!0):/Mozilla/i.test(b)&&!/compatible|webkit/i.test(b)&&(w.browser="firefox",w.firefox=!0),w.webkit&&(w.webkitVersion=parseInt(/AppleWebKit\/(\d+)/.exec(b)[1],10));const N=function(e){if(this.src=e,this.protocol=this.host=this.port=this.path=this.qs=this.hash=this.query=null,e){const t=typeof e;"string"==t?this.initWithString(e):"object"==t&&this.initWithURI(e)}};function R(e){try{return decodeURIComponent(e)}catch(t){return window.unescape(e)}}N.pattern=/^\s*([\S]+?:\/\/)?([^\s\/]+?@)?([^:\/\?\#]+)?(\:\d+)?(\/?[^#\?\s]*)?([\?][^#\s]*)?([#]\S+)?/i,N.prototype={initWithString(e){const t=N.pattern.exec(e),[i,s,n,r,o,a,c,l]=t;s||"/"==e.charAt(0)?(s&&(this.protocol=s.substr(0,s.indexOf(":"))),this.host=r||null,o&&(this.port=Number(o.substr(1))),a?this.path=R(a):this.host&&(this.path="/")):this.path=R((r||"")+(a||"")),c&&(this.qs=function(e,t){if(null==e||/^\s*$/.test(e))return null;const i={};let s=null;const n=e.replace(/\+/g," ").split(t||"&");let r,o;for(r=0,o=n.length;re.segment)):[...s.matchAll(g.allChars)].map((e=>e[0])),n.slice(0,t).join("")}(p(function(e){const t=void 0===e.textContent?"innerText":"textContent";let i=e[t].substr(0,16384);function s(e,i){let s,n;for(s=0;n=i[s++];)e=e.replace(n[t],"");return e}return i=s(i,e.getElementsByTagName("SCRIPT")),i=s(i,e.getElementsByTagName("NOSCRIPT")),i}(e),!0),t)}function V(e){if(!w.ie)return e.getAttribute("href");{const t=e.outerHTML.match(g.href);if(t)return p(t[1])}}function L(e){return/^\s*data:/.test(e)?p(e).substr(0,100):new N(e).simplify()}function H(e){const t=function(e){let t=e.className;if(t&&"string"==typeof t)return t=p(t.replace(/(\s|^)-ce-capture\b/g,"")).split(/\s+/),t.sort(),t.join(" ")}(e);if(!t||O<=6)return t;const i=[];for(let e=0,s=t.split(/\s+/);e=16?z:e>=13?W:12===e?F:null}function G(e){return"string"==typeof e?`[${M(function(e){const t=2147483648+function(e){let t=0;if(0==e.length)return t;for(let i=0;i=13?D:A}(t)[i]||0;return 0===s&&t>=13?t>=17?i.replace(/\d+/g,""):i:s}function q(e){const t=[];let i,s,n="";for(let s=0,n=e.length;s2)n+=`${G(i.type)}x${M(i.count)}`;else for(let e=0;e=13,r=(n&&e.shadowRoot||e).querySelectorAll("*");for(let e=0;e=13&&o.ownerSVGElement||(s&&o.nodeName in s||T(o)||(i.push({type:K(o,t)}),n&&o.shadowRoot&&i.push(...J(o.shadowRoot,{formatVersion:t,descendants:i}))))}return i}const Q=function(e,{formatVersion:t,ignore:i}={}){"number"!=typeof t&&(t=i?12:11);const s=function(e){return T(e)?1===e.children.length&&"FONT"===e.firstElementChild?e.parentElement:e.parentElement.parentElement:e}(e);this.type=K(s,t),this.elders=q(function(e,{formatVersion:t=11}={}){let i,s=e;const n=[],r=Y(t),o=t>=13;for(;;){if(s.previousElementSibling)i=1,s=s.previousElementSibling;else if(s.parentNode&&s.parentNode!==document.body&&s.parentNode!==document.documentElement)i=2,s=s.parentNode;else{if(!o||s.nodeName!==j||!s.host)break;i=2,s=s.host}if(!(r&&s.nodeName in r||o&&s.nodeName===j||T(s)||(n.push({type:K(s,t),relation:i}),!(n.length>=32))))break}return n}(s,{formatVersion:t})),this.youngerSiblings=q(function(e,{formatVersion:t=11}={}){const i=[],s=Y(t);for(let n=e.nextElementSibling;i.length<32&&n;n=n.nextElementSibling)s&&n.nodeName in s||T(n)||i.push({type:K(n,t)});return i}(s,{formatVersion:t})),this.descendants=q(J(s,{formatVersion:t})),k(s,this,null,{usePseudo:t>=16}),this.name=U(s),t>=16&&(this.visible=B(s))};Q.fromObject=function(e){if(e instanceof Q)return e;const t=Object.create(Q.prototype);for(const i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t},Q.prototype.toString=function(){return`${Q.hex(this.type)};${this.elders};${this.youngerSiblings};${this.descendants}`};var X=i(5832),Z=i(8356);class ee{constructor(e){this.site=e,this.clock=CE2.clock,this.ratio=e.recording_ratio}validRatio(){return!Number.isNaN(Number(this.ratio))&&null!=this.ratio}canRecord(){const e=CE2.w.innerWidth||CE2.d.documentElement.clientWidth;if((CE2.w.innerHeight||CE2.d.documentElement.clientHeight)<10||e<10)return this.debug("Sampling rejected: too small screen size"),!1;let t="undefined"!=typeof CE_ENFORCE_RECORDING&&CE_ENFORCE_RECORDING;const i=CE2.data&&CE2.data.dkey;if(!t&&i&&CE2.w&&CE2.w.location.href.indexOf(`ced=${i}`)&&CE2.w.location.href.indexOf("ceer=1")>-1&&(t=!0),t)return this.debug("CE_ENFORCE_RECORDING applied"),this._setAppliedStrategy("enforced"),!0;const s=CE2.state.overridenRecordingSamplingRate;if(s){this.debug(`Sampling Ratio: enforced to ${s}`);const e=100*Math.random()e)}customSamplingApplies(){if(!this.clock)return!1;const e=CE2.clock.getDate();if(!e)return!1;const t=new Date(1e3*parseInt(this.site.recordingSettings.samplingStartDateUnix,10)),i=new Date(1e3*parseInt(this.site.recordingSettings.samplingEndDateUnix,10)),s=new Date(1e3*parseInt(this.site.recordingSettings.samplingUpdatedAt,10)),n=new Date(1e3*parseInt(this.site.recordingSettings.samplingCompletedAt,10));return!(s&&n&&n>s)&&(t<=e&&e<=i)}customPeriodEnded(){if(!this.clock)return!1;return CE2.clock.getDate()>new Date(1e3*parseInt(this.site.recordingSettings.samplingEndDateUnix,10))}debug(e,t){(0,o.Yz)(`[Sessions] ${e}`,t)}_strategy(){return"custom"===this.site.recordingSettings.samplingStrategy?"custom":"consecutive"===this.site.recordingSettings.samplingStrategy?"consecutive":"no_sampling"===this.site.recordingSettings.samplingStrategy?"no_sampling":"uniform"}_key(){return"custom"===this._strategy()||"consecutive"===this._strategy()?btoa(`${this.site.id}|${this.site.recordingSettings.samplingUpdatedAt}`):"all"}}class te{constructor(e){this.site=e,this.clock=CE2.clock,this.ratio=e.web_analytics_ratio}validRatio(){return!Number.isNaN(Number(this.ratio))&&null!=this.ratio}debug(e,t){(0,o.Yz)(`[WebAnalytics] ${e}`,t)}canRecord(){const e=Math.random()*this.ratio;return this.debug("Sampling Ratio",{random:e,ratio:this.ratio,accepted:e<1}),e<1}}var ie=i(7823);var se=i(4933);const ne=CE2.w?.CE_ADDON_VERSION||"1.0.146",re="preview",oe="testMode",ae="pageChange",ce="survey",le="cta",de=2;var ue=i(9152);const he={},ge={survey:"Survey",cta:"CTA"},pe=()=>new Promise((e=>{CE2.loadTrackingScript((()=>{e()}))})),Ee=(e="index.js")=>he[e]?Promise.resolve():new Promise((t=>{const i=((e="index.js")=>{const{data:t}=CE2,i=`/scripts/addons/${ne}/${e}`;return CE2.w.CE_ADDON_HOST?[CE2.w.CE_ADDON_HOST,i].join(""):new CE2.Native.URL(i,t.common_script_url).toString()})(e);CE2.loadScript(i,(()=>{he[e]=!0,t()}))})),fe=e=>he[e]?Promise.resolve():new Promise((t=>{const i=(e=>{const{data:t}=CE2,i=`/scripts/addons/thirdparty/${e}`;return CE2.w.CE_ADDON_HOST?[CE2.w.CE_ADDON_HOST,i].join(""):new CE2.Native.URL(i,t.common_script_url).toString()})(e);CE2.loadScript(i,(()=>{he[e]=!0,t()}))})),me=async e=>{CE2[ge[e]]||(await Ee(),CE2.loadAddon?await CE2.loadAddon(e):(0,o.Yz)("[Addons] CE2.loadAddon not defined after loading addont script"))},Ce=async e=>{const t=(e=>{const t=document.getElementsByTagName(e)[0];return t?[...t.shadowRoot.querySelectorAll("link[rel=stylesheet]")]:[]})(e).filter((e=>!e.sheet));if(0===t.length)return!0;(0,o.Yz)(`[Addons] not loaded files: ${t.length}`);const i=t.map((e=>((0,o.Yz)(`[Addons] ${e.href}: schedule waiting`),new Promise((t=>{let i,s=!1;e.addEventListener("load",(()=>{s=!0,(0,o.Yz)(`[Addons] ${e.href}: loaded`),i&&clearTimeout(i),t("ok")})),i=setTimeout((()=>{!1===s&&((0,o.Yz)(`[Addons] ${e.href}: timed out`),t("timed out"))}),5e3)})))));return 0===(await Promise.all(i)).filter((e=>"string"==typeof e&&"timed out"===e)).length},ve=e=>{const{sampling:t,external:i}=e?.config||{};if(!e||"number"!=typeof t||!0===i)return!1;let s=ue.i.get("as");if("boolean"!=typeof s){const e=100*Math.random();s=e>t,(0,o.Yz)("[Addons] Sampling",{seed:e,sampling:t}),ue.i.set("as",s)}return s},we="initiated",ye="dataLoaded",Se="scriptLoaded",be="dataMissing",_e="https://core.crazyegg.com";class Ie{constructor(e,t){this.type=e,this.key=`ce_${e}_preview`,this.isLoadedByHash=!1,this.currentAddon=null,this.onDisplay=t}isPreview(){const e=!!this.getHash()||this.isLoadedByHash;return e&&(CE2.surveyPreviewMode=!0),e}isOpenedWindow(){return window.opener}isPlatformOrigin(e){const{data:t}=CE2,i=t.survey_launch_origins||t.addon_launch_origins||[];return[t.ce_app_url,...i].includes(e)}isValidHash(e){if(!e||"string"!=typeof e)return!1;const t=e.split(".");if(!/^[a-zA-Z0-9_-]{43}$/.test(t[0]))return!1;if(!/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/.test(t[1]))return!1;const i=t.slice(2).join(".");return!(i&&i!==CE2.w.location.hostname&&!CE2.w.location.hostname.endsWith(`.${i}`))}getHash(){const e=CE2.w.location.hash.match(new RegExp(`#ce-${this.type}-(.+)`));if(e&&e[1]){const t=e[1];return this.isValidHash(t)?(CE2.Native.sessionStorage&&CE2.Native.sessionStorageWrapper.write(this.key,t),t):null}if(!CE2.Native.sessionStorage)return null;const t=CE2.Native.sessionStorageWrapper.read(this.key);return this.isValidHash(t)?t:null}load(){const e=this.getHash();if(e)this.loadData(e).catch(console.error).then((e=>{e&&(this.currentAddon=e,this.onDisplay(e))}));else{window.opener&&window.opener.postMessage({status:we},_e);const e=t=>{t.source===window.opener&&this.isPlatformOrigin(t.origin)&&t.data&&"object"==typeof t.data&&t.data.token&&(this.isLoadedByHash=!0,this.loadData(t.data.token).then((e=>{e&&e.type!==this.type||(CE2.Native.sessionStorage&&CE2.Native.sessionStorageWrapper.write(this.key,t.data.token),t.source.postMessage({status:e?ye:be},_e),e&&((0,r.ch)(window,`${this.type}Loaded`,(()=>{t.source.postMessage({status:Se},_e)})),this.currentAddon=e,this.onDisplay(e)))})),window.removeEventListener("message",e))};window.addEventListener("message",e)}CE2.loaded=!0}loadData(e){return new Promise(((t,i)=>{const{data:s}=CE2,n=new CE2.Native.URL(s.survey_preview_dest||s.addon_preview_dest);n.searchParams.set("token",e),n.searchParams.set("user",s.uid),n.searchParams.set("host",CE2.w.location.hostname),(0,se.get)(n.href,(e=>{e&&200===e.status&&e.responseText?t(CE2.Native.JSON.parse(e.responseText.trim())):i(new Error("Preview addon not found"))}))}))}}const ke=new Ie("survey",(async e=>(await me(ce),CE2.launchAddon(ce,{mode:re,addon:e}))));let Te=[];const Ne=(e,t)=>{const i=[e.id,t],s=CE2.tracker.newEvent(CE2.eventTypes.SURVEY_COMPLETE,{attributes:i});CE2.tracker.send(s)},Re=()=>{const{Survey:e}=CE2;for(let e=0,t=Te;e{})),e.on("notTrigger",(()=>{})),e.on("surveyComplete",Ne),e.on("surveyClose",Ne),e.on("surveyDisplay",(({id:e})=>{(0,se.sendCounter)("survey:view",e)})),e.on("questionDisplay",((e,t)=>{const i=e.questions[t]?.id;i&&(0,se.sendCounter)("question:view",`${e.id}_${i}`)}))]},Ae=async e=>{if("string"!=typeof e)throw new Error("Survey ID must be a string");const t=(CE2.data.addons||[]).find((t=>t.id===e));t?ve(t)?(0,o.Yz)(`Addon ${e} is sampled`):(await pe(),await me(ce),Re((CE2.site,CE2.getSession(CE2.site?.id))),CE2.Survey.showSurvey(e)):(0,o.Yz)(`Addon ${e} is not found`)},De=async e=>{if("string"!=typeof e)throw new Error("Survey ID must be a string");await pe(),await me(ce),Re((CE2.site,CE2.getSession(CE2.site?.id))),CE2.Survey.showFeedbackSurvey(e)},Oe=async(e,t)=>{const{addons:i}=CE2.data;return CE2.w.CE_EXTERNAL_SURVEY?(async e=>{if(CE2.w.CE_EXTERNAL_SURVEY_PREVIEW&&"preview"===e)return await me("survey"),ke.load();if("preview"!==e){await pe();const{addons:e}=CE2.data;e.length&&(CE2.state.survey=e[0],await Ae(e[0].id))}})(e):e===re?(ke.isPreview()&&await me(ce),ke.load()):void(i&&0!==i.filter((({type:e})=>e===ce)).length?ke.isPreview()||await(async e=>{await pe(),await me(ce),Re(),await CE2.launchAddon(ce)})():(0,o.Yz)("[Addons] Disabled"))};var $e=i(8389);const Pe="cta_converted",xe=e=>{const t=(0,r.IS)("sessionId");if(!e||!t)return;(e=>{const t=CE2.data.addons.find((({id:t})=>t===e.id));if(t?.goal_id){const e=CE2.Native.JSON.parse(CE2.Native.sessionStorageWrapper.read(Pe)||"{}");e[t.goal_id]={id:t.id,goalId:t.goal_id,timestamp:Date.now()},CE2.Native.sessionStorageWrapper.write(Pe,CE2.Native.JSON.stringify(e))}})(e);const i={addonType:de,addonId:e.id};(0,se.sendCounter)("cta:click",e.id),CE2.tracker?.sendCtaClick(i),null!=e.id&&(0,$e.ww)("clicked_cta",String(e.id))},Ve=new Ie("cta",(async e=>(await me(le),CE2.launchAddon(le,{mode:re,addon:e}))));let Le=[];const He=e=>{const{CTA:t}=CE2;for(let e=0,t=Le;e{})),t.on("notTrigger",(()=>{})),t.on("display",(e=>{e&&(async({id:e})=>{await Ce("crazyegg-cta")&&(0,se.sendCounter)("cta:view",e)})(e)})),t.on("click",(t=>{t&&xe(t,e.site)}))]},Ue=async e=>{if("string"!=typeof e)throw new Error("CTA ID must be a string");const t=(CE2.data.addons||[]).find((t=>t.id===e));t?ve(t)?(0,o.Yz)(`Addon ${e} is sampled`):(await pe(),await me(le),He({site:CE2.site,session:CE2.getSession(CE2.site?.id)}),CE2.CTA.showCTA(e)):(0,o.Yz)(`Addon ${e} is not found`)},Me=async(e,t)=>{if(e===re)return Ve.isPreview()&&await me(le),Ve.load();const{addons:i}=CE2.data;i&&0!==i.filter((({type:e})=>e===le)).length&&(Ve.isPreview()||await(async e=>{await pe(),await me(le),He(e),await CE2.launchAddon(le)})(t))};var Be=i(623);const Fe=[s,n],We=(e,t={})=>{CE2.data.addons=(CE2.data.addons||[]).filter((e=>!1===ve(e)));for(let i=0;i(0,$e.mF)({resourceType:e.type,resourceId:e.id},(()=>(0,Be._9)(e.config.audience?.conditions,t))),Ye="text-entry/email",Ge=["multi-choice/single","multi-choice/multi","text-entry/short","text-entry/long",Ye,"rating/stars","rating/numerical","rating/smiley","rating/NPS"],Ke=e=>!e.some((e=>0!==e&&!e)),qe=e=>[e.questionType,e.questionId,e.questionText,e.response,e.questionPosition,e.otherResponse],Je=(e,t,i=null)=>{if(!e||!t.length)return(0,o.Yz)("Survey: invalid arguments");if(!((e,t)=>{const i=!e||Ke(Object.values(e)),s=!t.map((e=>Ke(Object.values(e))&&Ge.includes(e.questionType))).some((e=>!e));return i&&s})(i,t))return(0,o.Yz)("Survey: Invalid survey or response structure");if(CE2.surveyPreviewMode)return(0,o.Yz)("Survey: do not send responses in preview mode");const s=t.map(qe),n={surveyId:i?.id||"",surveyFormatVersion:i?.formatVersion||"",groupResponseId:e,whitelistedResponsesKeys:s},r=t.find((e=>e.questionType===Ye&&e.response));CE2.tracker?.sendSurveyResponse(n,r?.response),i?.id&&(0,$e.ww)("answered_survey",String(i.id))};var Qe=i(8401),Xe=i(55),Ze=i(3032);const et=function(e,t,i){return new Promise(((s,n)=>{const r=[],o=[];let a,c=0,l=0;const d=()=>{if(l>=e.length&&!a)return void(a=Promise.all(o).then((()=>{s(r)})).catch((e=>{n(e)})));if(l>=e.length)return;const u=e[l];l+=1;const h=i(u);o.push(h),h.then((e=>{r.push(e),c-=1,d()})).catch((e=>{n(e)})),c+=1,c{t.status<200||t.status>=300?lt(`Error loading latest HUD version: ${t.status} ${t.statusText}`):e(t.responseText.trim())}))}(),CE2.state.loadedHUD=!0,CE2.Native.sessionStorage.setItem("powerup","true"),!0)}catch(e){return lt(e),!1}},ht=function(){try{if(dt())return ut(),!0}catch(e){lt(e)}return!1},gt={startListener(){CE2.w.opener&&CE2.w.addEventListener("message",gt.onMessage)},stopListener(e,t){CE2.w.removeEventListener("message",gt.onMessage),e.postMessage({hudLaunched:!0},t)},onMessage(e){try{if(lt("Received message"),e.source!==CE2.w.opener)return void lt("Unexpected source");if(![CE2.data.ce_app_url,...CE2.data.hud.launch_origins].includes(e.origin))return void lt("Unexpected source url");const t=e.data;if(!t||"object"!=typeof t)return void lt("Unexpected message");if("number"!=typeof t.launcherId)return void lt("Unexpected launcherId");CE2.Native.sessionStorage.setItem("ce-hud-launch-params",CE2.Native.JSON.stringify(t)),gt.stopListener(e.source,e.origin),ut()}catch(e){lt(e)}}},pt=function(){if(CE2.data&&CE2.data.hud)try{!function(){try{if(void 0===CE2.Native.sessionStorage)return!1;if(void 0===CE2.Native.sessionStorage.getItem)return!1;const e=Boolean(CE2.Native.sessionStorage&&"function"==typeof CE2.Native.sessionStorage.getItem&&CE2.Native.sessionStorage.getItem("ce-hud-launch-params"));return!(CE2.w.opener&&!dt()&&!e||!CE2.Native.sessionStorage.getItem("powerup")||(ut(),0))}catch(e){return lt(e),!1}}(),CE2.w.addEventListener("hashchange",ht),ht(),gt.startListener()}catch(e){lt(e)}};var Et=i(6315);const ft="ce_bot_detector";const mt=new class{constructor(){CE2BH.defineProperty(this,"_onPopState",(()=>{this._incrementVisitIfNeeded()})),"undefined"==typeof window||(0,r.jI)("v11_disable_bot_detection")||window.__CE_SCRIPT_CHECK||(this.lastPathname=window.location.pathname,this._init())}_init(){this._loadState().detected||(this._incrementVisitIfNeeded(),this._pathCheckInterval=setInterval((()=>{this._incrementVisitIfNeeded()}),500),window.addEventListener("popstate",this._onPopState),this._mouseDownHandler=()=>{const e=this._loadState();e.detected||(e.clicks+=1,this._checkForBot(e),this._saveState(e))},window.addEventListener("mousedown",this._mouseDownHandler,!0))}_loadState(){try{const e=CE2.Native.localStorageWrapper.read(ft),t={visits:0,clicks:0,firstVisitTime:Date.now(),detected:!1};if(!e)return t;const i=CE2.Native.JSON.parse(e);if(!i.detected&&i.firstVisitTime){const e=6048e5;if(Date.now()-i.firstVisitTime>e)return t}return i}catch(e){return console.error("Error loading bot detector state",e),{visits:0,clicks:0,firstVisitTime:Date.now(),detected:!1}}}_saveState(e){CE2.Native.localStorageWrapper.write(ft,CE2.Native.JSON.stringify(e))}_incrementVisitIfNeeded(){const e=window.location.pathname;if(e===this.lastPathname)return;const t=this._loadState();t.detected||(this.lastPathname=e,t.visits+=1,this._checkForBot(t),this._saveState(t))}_checkForBot(e){const{visits:t,clicks:i}=e;t>0&&i/t>1e3&&this._markAsBot(e,"High click-to-visit ratio"),t>10&&0===i&&this._markAsBot(e,"Many visits without clicks")}_markAsBot(e,t){console.warn("Bot detected:",t),e.detected=!0,window.removeEventListener("mousedown",this._mouseDownHandler,!0),window.removeEventListener("popstate",this._onPopState,!0),clearInterval(this._pathCheckInterval),this._saveState(e)}isBot(){return!window.__CE_SCRIPT_CHECK&&this._loadState().detected}};function Ct(){try{if(function(e){return!window.__CE_SCRIPT_CHECK&&(!!/bingpreview|prerender|jorgee|Mediapartners-Google|APIs-Google|phpcrawl|GoogleAdSenseInfeed|Google Page Speed Insights|Google-Ads-Overview|Google-Read-Aloud|Google-Structured-Data-Testing-Tool|Data Theorem|alexa|bot|crawl(er|ing)|facebookexternalhit|feedburner|google web preview|nagios|postrank|pingdom|slurp|spider|yahoo|yandex|phantom|headless|BrandVerity|ruxitsynthetic|Chrome-Lighthouse/i.test(e)||void 0)}(navigator.userAgent))return"userAgent";if(mt.isBot())return"clicksToVisitsRatio";if(!1===navigator.onLine)return"navigator.onLine";const e=function(e){return(e.innerHeight>=16384||e.innerWidth>=16384)&&"viewport-inner"}(window);if(e)return e;if(!navigator.language||!navigator.languages||navigator.languages&&0===navigator.languages.length)return"language";if(navigator.webdriver)return"webdriver";if(window.jasmine)return"jasmine";const t=["__webdriver_evaluate","__selenium_evaluate","__webdriver_script_function","__webdriver_script_func","__webdriver_script_fn","__fxdriver_evaluate","__driver_unwrapped","__webdriver_unwrapped","__driver_evaluate","__selenium_unwrapped","__fxdriver_unwrapped"],i=["webdriver","_phantom","__nightmare","_selenium","callPhantom","callSelenium","_Selenium_IDE_Recorder"];for(let e=0;e0;)e.pop().call();bt=!0};if(bt&&e(),(0,r.KT)(window,"load",e),CE2.d.addEventListener&&(0,r.KT)(CE2.d,"DOMContentLoaded",e),CE2.d.readyState){const t=yt;!function i(){t.test(CE2.d.readyState)?e():setTimeout(i,10)}()}},kt="ce_successful_csp_check";class Tt{load(){return this.loadPromise||(this.loadPromise=new Promise((e=>{if(CE2.benchmark.start("navigation|crazyegg|common|userdatamain|load-csp"),void 0===this.isSuccessful&&(this.isSuccessful=Tt.get()),void 0!==this.isSuccessful)return CE2.benchmark.stop("navigation|crazyegg|common|userdatamain|load-csp"),void e();const t=[CE2.data.page_states_tracking_url,CE2.data.assets_tracking_url].map((e=>e?new Promise((t=>{(0,se.get)(`${e}/healthcheck`,(e=>{e&&200===e.status&&e.responseText?(e=CE2.Native.JSON.parse(e.responseText.trim()),t("ok"===e.status)):t(!1)}))})):Promise.resolve(!0)));t.push(Tt.getInlineWorkerPromise()),Promise.all(t).then((t=>{this.isSuccessful=-1===t.findIndex((e=>!1===e)),this.isSuccessful&&Tt.store(),CE2.benchmark.stop("navigation|crazyegg|common|userdatamain|load-csp"),e()}))}))),this.loadPromise}hasIssues(){return!this.isSuccessful}static getInlineWorkerPromise(){return new Promise((e=>{try{const t=(0,r.I3)("crazyegg-csp-check",(e=>{self.postMessage(e.data)}),!1);if(t){const i=setTimeout((()=>{t.terminate(),e(!1)}),500);t.onmessage=s=>{clearTimeout(i),t.terminate(),e("hello"===s.data)},t.postMessage("hello")}else e(!1)}catch(t){e(!1)}}))}static store(){CE2.Native.localStorageWrapper.write(kt,+new Date+864e5)}static get(){let e=CE2.Native.localStorageWrapper.read(kt);if(e){if(e=parseInt(e,10),e>+new Date)return!0;CE2.Native.localStorageWrapper.remove(kt)}}}const Nt=new Tt,Rt=function(){const e="!$%&()*+,-.0123456789;<=>?@[]^_`{|}~",t={};let i;for(i=0;i<36;i++)t[e.charAt(i)]=i.toString(36);return t}(),At=function(e){return parseInt(e.replace(/./g,(e=>Rt[e])),36)},Dt=function(e){let t="";const i=/(![^:\/a-z])|([^:\/a-z]{2})|(:[^:\/a-z]{3})|(\/[^:\/a-z]{4})/gi,s=String.fromCharCode;let n;for(;null!=(n=i.exec(e));)n[1]||n[2]?t+=s(At(n[0])):n[3]?t+=s(At(n[3].substr(1))):n[4]&&(t+=s(At(n[4].substr(1))));return t},Ot=function(e,t,i){const s={};CE2.visitorTracker&&(s.visitor=CE2.visitorTracker.getId()),i&&(s.goals=i.map((e=>e.id))),t&&(s.session={id:t.id,full:t.isFull()});const n=new CE2.Tracker({version:CE2.VERSION,visitId:CE2.getVisitId(),censoredElements:CE2.getCensoredElements(e),site:e,session:t,goals:i});return(0,o.Yz)("[Tracker] Starting",s),n},$t=function(e,t,i,s){const n={},a=(t||[]).filter((e=>(0,r._3)(e)));a.length&&(CE2.testID=a.map((e=>e.id)),CE2.testVersion=a.map((e=>e.v))),t&&t.length&&(n.snapshots=t.map((e=>({id:e.id,version:e.v})))),i&&(n.session={id:i.id,new:i.isNew(),full:i.isFull()}),s&&(n.urlChanged=s),(0,o.Yz)("[Tracker] Updating",n),e.update({session:i,snapshots:a,urlChanged:s})},Pt=function(){const e="v11slnt";function t(){ue.i.set(e,+new Date)}function i(){const t=function(){const t=ue.i.get(e);if(t)return parseInt(t,10)}();return!!t&&+new Date-t<6e5}return{slow:()=>{if((0,r.jI)("v11_record_slow_network"))return!1;try{return function(){if(navigator&&navigator.connection&&navigator.connection.downlink){const{downlink:e}=navigator.connection;e<.5&&t()}}(),function(){if(performance&&performance.getEntriesByType){const e=performance.getEntriesByType("resource");if(void 0===e||e.length<=0)return!1;let i,s;for(let t=0;t1e3&&t()}}}(),i()}catch(e){return(0,Ze.A)(e),!1}}}};function xt(e){if(""!==e&&!/^\s*#.*$/.test(e))return e.replace(/\s*#.*$/,"")}function Vt(e,t){return t.indexOf("-")>-1?function(e,t){if(-1===e.indexOf("."))return!1;const i=e.split("."),s=xt(t);if(!s)return!1;const n=s.split("-");if(!n[0]||!n[1])return!1;const r=n[0].split("."),o=n[1].split(".");for(let e=0;e<4;e++){if(!r[e]||!o[e])return!1;if("*"===r[e]||"*"===o[e])continue;const t=parseInt(i[e],10);if(tparseInt(o[e],10))return!1}return!0}(e,t):t.indexOf(":")>-1?function(e,t){if(-1===e.indexOf(":"))return!1;const i=e.split(":"),s=xt(t);if(!s)return!1;const n=s.split(":");for(let e=0;e{jt(e,t,i)}},Gt=function(e,t,i=!1){const s=i?"matched":"rejected";Wt.push({id:e.id,result:s,message:t})},Kt=function(e){return(t,i=!1)=>{Gt(e,t,i)}},qt=function(e){let t,i;const{rules:s}=e;if(CE2.data.disable_recordings_mobile&&1!==CE2.clock.getDeviceType())return jt({disable_recordings_mobile:CE2.data.disable_recordings_mobile,device:CE2.clock.getDeviceType()},"disabled mobile",!1),!1;if(e.pageTargetingEnabled){if(1===Ht)return!0;if(s&&s.length)for(t=0;i=s[t++];)if((0,ot.$)(i.u,CE2.w.location.href,i.o,null,null,Yt(i)))return!0;return!1}return jt({},"All pages",!0),!0};const Jt=function(e,t,i){if(!e||!t||!i)throw new Error("Missing site/session/visitor");if(!e.sessionRecording)return(0,o.Yz)("[Sessions] Disabled"),{record:!1};if(!(e.recordingSettings&&e.recordingSettings.recordIframes)&&CE2.w.parent!==CE2.w){const e=(0,r.Ep)(),t=(0,r.R2)().substr(1);if(e&&e.indexOf(t)>-1)return(0,o.Yz)("[Sessions] Recordings prevented from iframe"),{record:!1}}const s=qt(e.recordingSettings),n=e.recordingSettings&&function(e){const{blockedRules:t}=e;return Ft()||(0,ot.e)(t)}(e.recordingSettings),a=(new Pt).slow()?"slow network":(0,r.Qb)()?Nt.hasIssues()?"site has csp issue":void 0:"inline-workers not supported";if(t&&t.isFull())return a?(t.reset(a),(0,r.GO)(`[Sessions] Stopped: ${a}`),{record:!1,reset:!0}):n&&e.recordingSettings.endSessionOnBlockedUrl?(t.reset("page-blocked"),(0,r.GO)("[Sessions] Page blocked and marked to end"),{record:!1,reset:!0}):Ft()?(t.reset("recording-stopped"),(0,r.GO)("[Sessions] Recording Stopped"),{record:!1,reset:!0}):n?((0,r.GO)("[Sessions] Page blocked"),{record:!1}):((0,o.Yz)("[Sessions] Continued"),{record:!0});if((0,o.Yz)("[Sessions] Matching parameters",CE2.w.location.href),(0,o.Yz)("[Sessions] Matching target",zt),zt=[],!s)return(0,o.Yz)("[Sessions] No matches"),{record:!1};if((0,o.Yz)("[Sessions] Matched",{url:CE2.w.location.href}),n)return(0,o.Yz)("[Sessions] Page blocked"),{record:!1};if(a)return(0,o.Yz)(`[Sessions] Won't start: ${a}`),{record:!1};if(t.isSampled())return(0,o.Yz)("[Sessions] Sampling standby"),{record:!1};const c=new ee(e);return c.validRatio()&&c.canRecord()?((0,o.Yz)("[Sessions] Sampling accepted, starting new"),{record:!0,ratio:c}):((0,o.Yz)("[Sessions] Sampling rejected"),{record:!1,sampled:!0})},Qt=function(e,t){if(!e||!t)throw new Error("Missing site/session");if(!e.webAnalytics)return(0,o.Yz)("[WebAnalytics] Disabled"),{record:!1};if(t.hasWebAnalytics())return(0,o.Yz)("[WebAnalytics] Continued"),{record:!0};if(!e.web_analytics_ratio)return(0,o.Yz)("[WebAnalytics] Disabled"),{record:!1,sampled:!0};if(t.isWebAnalyticsSampled())return(0,o.Yz)("[WebAnalytics] Sampling standby"),{record:!1};const i=new te(e);return i.validRatio()&&i.canRecord()&&!t.isDeleted()?((0,o.Yz)("[WebAnalytics] Sampling accepted, starting new"),{record:!0,ratio:i}):((0,o.Yz)("[WebAnalytics] Sampling rejected"),{record:!1,sampled:!0})},Xt=function(e,t,i,s,n,r){if(void 0===e.isBlocked&&(e.isBlocked=new Lt(e.ip).blocked(r)),e.isBlocked)return Gt(e,"IP blocked"),!1;if(wt())return Gt(e,"bot blocked"),!1;if(e.vid){const t=s.includes(e.vid)&&(!CE2.Native.Array.isArray(e.d)||e.d.indexOf(CE2.clock.getDeviceType())>=0);return Gt(e,`variantid=${s.join(",")} allowed=${e.vid}`,t),t}return n&&Object.values(n).length&&e.o&&/go/.test(e.o)?(0,ot.$)(e.u,n,e.o,e.d,CE2.n.userAgent,Kt(e)):i&&e.o&&/n/.test(e.o)?(0,ot.$)(e.u,i,e.o,e.d,CE2.n.userAgent,Kt(e)):(0,ot.$)(e.u,t,e.o,e.d,CE2.n.userAgent,Kt(e))},Zt="cebsp_";const ei=new class{constructor(){this.numPages=0}load(){this.numPages=(0,r.Ri)(Zt),this.numPages=this.numPages?parseInt(this.numPages,10):0}pageChanged(){this.numPages++,(0,r.o)(Zt,this.numPages)}getPages(){return this.numPages}};class ti{constructor(){CE2BH.defineProperty(this,"CURRENT_RETURNING_WINDOW_MSEC",18e5),CE2BH.defineProperty(this,"RETURNING_WINDOW_MSEC",2592e6),CE2BH.defineProperty(this,"visitorV6Key","_cer.v"),CE2BH.defineProperty(this,"visitorKey","v"),CE2BH.defineProperty(this,"visitorIdentificationKey","vi"),CE2BH.defineProperty(this,"visitorIsReturningKey","vir"),CE2BH.defineProperty(this,"visitorLastVisitAtKey","lva"),CE2BH.defineProperty(this,"visitorVisitsKeyLegacy","vv"),CE2BH.defineProperty(this,"visitorVisitsKey","vpv"),CE2BH.defineProperty(this,"visitorDailyVisitAt","vdva"),CE2BH.defineProperty(this,"browserSessionCookie","cebs"),CE2BH.defineProperty(this,"firstVisitDataKey","ce_fvd"),this.id=null,this.identification=void 0,this.storedId=null,this.numVisits=null,this.visitorV6Parts=null,this.firstVisitData=null,(0,r.Ri)(this.visitorV6Key)&&(this.visitorV6Parts=(0,r.Ri)(this.visitorV6Key).split("."))}load(){this.loadVisitorId(),this.loadVisitorIdentification(),this.loadVisitorVisits(),this.loadFirstVisitData()}identify(e){e&&(CE2.IDENTIFIER=this.identification=e,ue.i.set(this.visitorIdentificationKey,this.identification))}clearIdentity(){CE2.IDENTIFIER=null,ue.i.del(this.visitorIdentificationKey)}del(e){ue.i.del(e)}reset(){this.del(this.visitorKey),this.del(this.visitorVisitsKey)}loadVisitorId(){if(this.storedId=ue.i.get(this.visitorKey),window.CE_VISITOR_ID)this.id=window.CE_VISITOR_ID,this.storedId&&window.CE_VISITOR_ID!==this.storedId&&this.reset();else if(this.storedId)this.id=this.storedId;else if(this.visitorV6Parts){const[e]=this.visitorV6Parts;this.id=e,ue.i.set(this.visitorKey,e)}else this.id=(0,tt.M4)(),ue.i.set(this.visitorKey,this.id)}loadVisitorIdentification(){const e=ue.i.get(this.visitorIdentificationKey);CE2.IDENTIFIER?this.identification=CE2.IDENTIFIER:e&&(this.identification=e,CE2.IDENTIFIER=this.identification)}loadVisitorVisits(){const e=!(0,r.Ri)(this.browserSessionCookie);e&&(this.isReturning(),CE2.Native.localStorage.removeItem(this.firstVisitDataKey)),(0,r.o)(this.browserSessionCookie,"1"),ue.i.get(this.visitorVisitsKey)?this.numVisits=parseInt(ue.i.get(this.visitorVisitsKey),10):ue.i.get(this.visitorVisitsKeyLegacy)?this.numVisits=1:this.visitorV6Parts&&this.visitorV6Parts[2]&&(this.numVisits=parseInt(this.visitorV6Parts[2],36)),null===this.numVisits?(this.numVisits=0,ue.i.set(this.visitorVisitsKey,this.numVisits)):e&&(this.numVisits+=1,ue.i.set(this.visitorVisitsKey,this.numVisits))}loadFirstVisitData(){let e=CE2.Native.localStorageWrapper.read(this.firstVisitDataKey);if(e)this.firstVisitData=CE2.Native.JSON.parse(e);else{const{userData:t}=CE2.state;e={landingUrl:CE2.w.location.href,referrer:CE2.d.referrer,time:Date.now(),utm:(0,r.ne)(),dailyVisitTime:Date.now(),userData:Object.values(t).length>0?[t[1],t[2],t[3],t[4],t[5]]:[]},this.firstVisitData=e,CE2.Native.localStorageWrapper.write(this.firstVisitDataKey,CE2.Native.JSON.stringify(e))}}isReturning(){return this.returningState().state===ti.RETURNING_STATE.RETURNING}isNewDailyVisitor(){const e=ue.i.get(this.visitorDailyVisitAt),t=CE2.clock.getDate();return(!e||t>e)&&(t.setUTCHours(23,59,59,999),ue.i.set(this.visitorDailyVisitAt,+t),!0)}returningState(){if(void 0!==this.isReturningCache)return this.isReturningCache;let e=ue.i.get(this.visitorIsReturningKey),t=ue.i.get(this.visitorLastVisitAtKey),i=!1;e||(e=ti.RETURNING_STATE.NEW,t=Date.now(),CE2.Native.localStorage.removeItem(this.firstVisitDataKey));const s=Date.now()-t;return s>this.CURRENT_RETURNING_WINDOW_MSEC&&(e=ti.RETURNING_STATE.RETURNING,CE2.Native.localStorage.removeItem(this.firstVisitDataKey)),s>this.RETURNING_WINDOW_MSEC&&(e=ti.RETURNING_STATE.NEW,i=!0,CE2.Native.localStorage.removeItem(this.firstVisitDataKey)),(0,o.Yz)(`[Visitor] IsReturning id=${this.id} state=${e} lastVisit=${t} reset=${i}`),t=Date.now(),ue.i.set(this.visitorIsReturningKey,e),ue.i.set(this.visitorLastVisitAtKey,t),this.isReturningCache={state:e,reset:i},this.isReturningCache}setIdentityFromUrl(){const e=CE2.site?.autoIdQueryParam||"CE_ID",t=new CE2.Native.URL(CE2.w.location.href).searchParams.get(e);"string"==typeof t&&0!==t.trim().length&&this.identify(t)}}CE2BH.defineProperty(ti,"RETURNING_STATE",{NEW:"new",RETURNING:"returning"});const ii=new ti,si=function(){return{isReturning:()=>ii.isReturning(),returningState:()=>ii.returningState(),getId:()=>ii.id,getIdentification:()=>ii.identification,getStoredId:()=>ii.storedId,getNumVisits:()=>ii.numVisits,getFirstVisitData:()=>ii.firstVisitData,setIdentityFromUrl:()=>ii.setIdentityFromUrl(),isNewDailyVisitor:()=>ii.isNewDailyVisitor(),load(){ii.load()},identify:e=>ii.identify(e),clearIdentity(){ii.clearIdentity()}}};var ni=i(1881);const ri="_ce.clock_data",oi=",",ai=/^[123]$/;const ci=new class{getData(){return(0,r.Ri)(ri)}load(){if(this.loadPromise)return this.loadPromise;const e=this;return this.loadPromise=new Promise(((t,i)=>{CE2.benchmark.start("navigation|crazyegg|common|userdatamain|load-clock");const s=(0,r.Ri)(ri);if(s){const[i,n,r,o,a,c]=s.split(oi);if(!o||o===(0,ni.F)(CE2.n.userAgent))return i&&n&&(e.diff=parseInt(i,10),e.ip=n,e.device=r&&ai.test(r)?parseInt(r,10):void 0,e.userAgentMd5=o,e.browser=a,e.country=c,e.valid=!0),CE2.benchmark.stop("navigation|crazyegg|common|userdatamain|load-clock"),CE2.debug("[Clock] Loaded from cookie",s),void t();CE2.debug("[Clock] User agent changed, reloading")}const n=s=>{const[n,a,c,l,d]=s.responseText.split(oi),u=parseInt(n,10);if(u>0){const i=+new Date-u;e.diff=i,e.ip=a,e.device=c&&ai.test(c)?parseInt(c,10):void 0,e.browser=l,e.country=d,e.userAgentMd5=(0,ni.F)(CE2.n.userAgent),e.valid=!0;const s=[i,a,e.device,e.userAgentMd5,e.browser,e.country].join(oi);(0,r.o)(ri,s,{expiresInDays:1}),(0,o.Yz)("[Clock] Fetch from api",s),CE2.benchmark.stop("navigation|crazyegg|common|userdatamain|load-clock"),t()}else(0,o.Yz)("[Clock] Error, stopping"),i()};let a,c,l;if(CE2.site?.id&&!CE2.w.CE_SITE_ID){c=CE2.data.uid,l=CE2.site.id;const e=[(0,tt.M4)(0,1),CE2.visitorTracker.getId(),36,CE2.VERSION,+new Date,CE2.tabId],t=CE2.visitorTracker.getFirstVisitData();a=[e,[CE2.getVisitId(),t.landingUrl,t.referrer,(0,r.ne)(t.landingUrl),CE2.w.CE_URL_FINGERPRINT(),CE2.visitorTracker.isReturning()?1:0,CE2.visitorTracker.getNumVisits()]]}(0,r.ou)()?n({responseText:[+new Date,"99.99.99.99",1,"chrome","US"].join(oi)}):(0,se.sendEvents)({userId:c,siteId:l,context:"Clock",t:+new Date,endpoint:CE2.data.clock_url,callback:n},a?[a]:[])})),this.loadPromise}getIP(){return this.ip}getDiff(){return this.diff}getBrowser(){return this.browser}getCountry(){return this.country}getDate(){if(this.valid)return new Date(+new Date-this.diff)}getDateUnix(){const e=this.getDate();if(e)return Math.floor(e/1e3)}getDeviceType(){return this.device?this.device:((0,o.Yz)("[Clock] Clock didn't know device. Using deviceType() instead."),function(e){const t=e.toLowerCase();let i,s,n=0;if(i=e.indexOf("("),-1==i)return 1;if(i++,-1!=(s=e.indexOf("Android",i))){if(s+=8,e.length>s&&(n=e.charAt(s)))switch(n){case"2":if(-1!=e.indexOf("BNTV",s))return 3;if(-1!=t.indexOf("nook",s))return 3;if(-1!=e.indexOf("Kindle",s))return 3;if(-1!=e.indexOf("Touchpad",s))return 3;break;case"3":return 3;case"4":if(-1!=e.indexOf("Silk",s))return 3}return-1!=t.indexOf("tablet",s)?3:-1!=e.indexOf("Mobi",s)?2:3}if(-1!=(s=e.indexOf("iP",i)))switch(n=e.charAt(s+2),n){case"a":return 3;case"h":case"o":return 2}return-1!=(s=e.indexOf("BlackBerry",i))?-1!=e.indexOf("Tablet",s+10)?3:2:-1!=e.indexOf("Windows Phone",i)||-1!=e.indexOf("BB10",i)||"M"!=e.charAt(0)&&-1!=e.indexOf("Opera Mini",i)?2:1}(CE2.n.userAgent))}},li=["editor","ab_tests"];function di(e){if(!li.includes(e))throw new Error(`unsupported feature name: ${e}`);const t=CE2.w.CE_FEATURES?.[e];return!t||!1!==t.enabled}let ui,hi;CE2.clock=ci,CE2.csp=Nt,CE2.eventTypes={VISIT:1,CLICK:2,SCROLL:3,MOUSE_MOVEMENT:4,PAGE_STATE:5,RESIZE:6,SESSION_SCROLL:7,ERROR:8,PAGE_LOAD:9,INACTIVE:10,TYPING:11,CUSTOM:12,PAGE_VISIBILITY:13,DOM_CONTENT_LOADED:14,FIRST_CONTENTFUL_PAINT:15,DOM_INTERACTIVE:16,IDENTIFY:17,CUSTOM_USER_DATA:18,TAG:19,SESSION_RATIO:20,VALID_SESSION:21,END_SESSION:22,ECOMMERCE:23,FORM:24,CUSTOM_PERFORMANCE:25,GOAL_CONVERSION:26,ASSETS:27,SURVEY_RESPONSE:28,EXCESSIVE_SCROLL:29,LONG_TASK:30,FIRST_INPUT_DELAY:31,CUMULATIVE_LAYOUT_SHIFT:32,LARGEST_PAINT:33,QUICKBACK:34,SESSION_WORTH:35,DAILY_VISIT:36,DAILY_VISIT_COUNTER:37,ADDON_CLICK:38,PAGE_VIEW:39,AB_TEST_VIEW:40,AB_TEST_CONVERSION:41,PAGE_UNLOAD:42,SURVEY_COMPLETE:43},CE2.clickTypes={RAGE:"r",AUTH_BUTTON:"a",NOT_CLICKABLE:"d"},CE2.getVisitId=()=>CE2.visitId,CE2.getSessionId=()=>CE2.getSessionId();const gi=function(){(0,o.Yz)("[Loading] Stopping Monitor"),clearInterval(hi),hi=null,ui=null};const pi=function(){CE2.bh&&(CE2.bh.parentElement.removeChild(CE2.bh),CE2.bh=null)},Ei=function(e=!0){return Promise.all([CE2.clock.load(),e?CE2.csp.load():Promise.resolve()])},fi=function(e){try{(0,o.Yz)(`[Loading] ${e}`),"function"==typeof CE_NOT_TRACKING&&window.CE_NOT_TRACKING(e)}catch(e){(0,o.Yz)("[Loading] Not tracking callback failure",e)}CE2.loaded=!0};const mi=function(e){if(CE2.benchmark.start("navigation|crazyegg|common|userdatamain|load-samplingdata"),CE2.data&&CE2.data.samplingData)return e();const t=CE2.getNativeXMLHttpRequest();t.onreadystatechange=function(){if(4==t.readyState)try{200==t.status&&t.responseText&&(CE2.data.samplingData=CE2.Native.JSON.parse(t.responseText),CE2.benchmark.stop("navigation|crazyegg|common|userdatamain|load-samplingdata"),e())}catch(e){(0,o.Yz)("[Loading] Error loading sampling data",e.message)}},t.onerror=function(e){(0,o.Yz)("[Loading] Error loading sampling data",e.message)},(0,o.Yz)("[Loading] Sampling user data",CE2.data.sampling_data_url),t.open("GET",`${CE2.data.sampling_data_url}?t=${CE2.getUserDataTime()}`,!0),t.send()},Ci=async function(){CE2.benchmark.start("navigation|crazyegg|common|usermain");try{CE2.VERSION=CE2.data.version;let e=`[Loading] Starting version=${CE2.VERSION}`;window.parent!==window&&(e+=" from within an iframe"),(0,o.Yz)(e);let t,{snapshots:i,sites:s,goals:n}=CE2.data,a=!0;"string"==typeof i&&(i=CE2.Native.JSON.parse(Dt(i))),"string"==typeof s&&(s=CE2.Native.JSON.parse(Dt(s))),"string"==typeof n&&(n=CE2.Native.JSON.parse(Dt(n))),s&&CE2.w.CE_SITE_ID?(CE2.sites=s,CE2.site=t=s.find((e=>e.id===CE2.w.CE_SITE_ID))):s&&(CE2.sites=s,CE2.site=t=(0,r.Wb)(s));const c=await new Promise((e=>{const t=CE2.w.CE_MAX_RETRIES||30;let i=0;const s=()=>{i++;try{CE2.Native.localStorage.setItem("ce_localstorage_test",""),CE2.Native.localStorage.removeItem("ce_localstorage_test")}catch(n){return CE2.debug(`[Checks] localStorage not available, trying again... attempt ${i}`),i>=t?void e("localStorage not available"):void setTimeout(s,1e3)}if(CE2.debug("[Checks] localStorage available"),!(0,r.uh)("_ce.cch"))return CE2.debug(`[Checks] cookies not available, trying again... attempt ${i}`),i>=t?void e("cookies not available"):void setTimeout(s,1e3);CE2.debug("[Checks] cookies available"),e(!0)};s()}));if(!0!==c)return void fi(`Not tracking: can't run - ${c}`);if(CE2.hudMain&&CE2.hudMain(),CE2.bot)return void fi(`Not tracking: bot detected - ${CE2.bot}`);if(t){if((0,r.LB)(CE2.w,CE2.d,CE2.n,CE2.ie))return void fi("Not tracking: doNotTrack detected.");if((0,r.jI)("disable-tracking"))return void fi("Not tracking: disabled.");(0,r.ch)(CE2.w,"pageshow",(e=>{e.persisted&&(delete CE2.monitorPagePath,delete CE2.monitorPageUrl)})),!CE2.data.sites_sampling&&CE2.data.samplingData&&CE2.data.samplingData.sites_sampling&&(CE2.data.sites_sampling=CE2.Native.JSON.parse(Dt(CE2.data.samplingData.sites_sampling)));const e=new Map((i||[]).map((e=>[e.id,e])));if(CE2.testID=CE2.testVersion=null,CE2.tabId=(0,tt.vU)(),CE2.visitorTracker=si(),CE2.visitorTracker.load(),CE2.visitorTracker.setIdentityFromUrl(),ei.load(),await Ei(!!t.sessionRecording),CE2.benchmark.stop("navigation|crazyegg|common|usermain"),We(re,{site:t}),new Lt(t.settings?.blockIpList).blocked(CE2.clock.getIP()))return(0,o.Yz)("[Loading] IP Blocked",CE2.clock.getIP()),void(CE2.ipBlocked=!0);CE2.ipBlocked=!1,di("ab_tests")&&("function"==typeof CE2.initFlowTracking?CE2.flowsMatching=await CE2.initFlowTracking():(0,Z.bU)()&&(0,Z.UE)()),ui=async function(){try{if(mt.isBot())return CE2.tracker&&(CE2.tracker.addTag("bot",{virtual:!0}),CE2.tracker.session?.reset("bot detected"),CE2.tracker.cleanup(),delete CE2.tracker),gi(),void fi("Not tracking: bot detected - 'clicks to visits ratio'");CE2.benchmark.start("navigation|crazyegg|common|monitor");const s=CE2.w.location.href,c=CE2.w.location.pathname,l=CE2.flowsMatching&&CE2.flowsMatching.map((e=>e.flow?.trackByVariant&&e.variant.variantId))||[],d="string"==typeof CE_SNAPSHOT_NAME&&CE_SNAPSHOT_NAME.trim(),u=function(e){const t={};if(e&&e.length){const{gaData:i,google_optimize:s}=CE2.w;e.forEach((e=>{if(e&&"go"==e.o){const n=(e.u||"").split(".");if(n[1]){const e=i?.[n[0]]?.experiments?.[n[1]]||s?.get?.(n[1]);e&&(t[n[1]]=e)}}}))}return t}(i),h=CE2.clock.getDateUnix();let g=!1,p=!1,E=!1,f=CE2.getSession(CE2.site?.id);if(!f)return void gi();f!==CE2.monitorSession&&((0,o.Yz)("[Sessions] Set",{oldSessionId:CE2.monitorSession?.id,sessionId:f.id}),E=!0);let m=(CE2.monitorSnapshotIds?CE2.monitorSnapshotIds.split(","):[]).map((t=>e.get(parseInt(t,10))));const C=m.filter((e=>e&&e.e&&h>=e.e)).sort().map((e=>e.id)).join(",");if(CE2.monitorPageUrl==s&&CE2.monitorVariantIds==CE2.Native.JSON.stringify(l)&&CE2.monitorGaData==CE2.Native.JSON.stringify(u)&&CE2.monitorCESnapshotName==d&&CE2.monitorExpiredSnapshotIds==C&&!CE2.recordingSettingChanged&&!E)return;if((0,r.Rc)(),CE2.monitorPagePath&&CE2.monitorPagePath===c||(g=!0),CE2.monitorPageUrl&&CE2.monitorPageUrl===s||(p=!0),g&&((0,$e.$K)(),ei.pageChanged(),We(ae,{site:t,session:f}),di("editor")&&CE2.applyVersion?.()),!p||a||CE2.flowPatchApplied||("function"==typeof CE2.initFlowTracking?CE2.flowsMatching=await CE2.initFlowTracking():(0,Z.bU)()&&(0,Z.UE)()),CE2.monitorPagePath=c,CE2.monitorPageUrl=s,CE2.monitorVariantIds=CE2.Native.JSON.stringify(l),CE2.monitorGaData=CE2.Native.JSON.stringify(u),CE2.monitorCESnapshotName=d,CE2.monitorExpiredSnapshotIds=C,CE2.logHistoryEnabled=!0,g&&f&&f.isExpired()&&(f.reset("expired"),f=CE2.getSession(CE2.site?.id),E=!0),g||E){let e=Qt(t,f);e.reset&&e.retry&&(f=CE2.getSession(CE2.site?.id),e=Qt(t,f),E=!0),e.reset&&(f=CE2.getSession(CE2.site?.id),E=!0),!e.record&&e.sampled&&(f.setWebAnalyticsSampled(),E=!0),e.record&&e.ratio&&(f.startWebAnalytics(e.ratio.ratio),E=!0)}if(g||CE2.recordingSettingChanged||E){let e=Jt(t,f,CE2.visitorTracker);e.reset&&e.retry&&(f=CE2.getSession(CE2.site?.id),e=Jt(t,f,CE2.visitorTracker),E=!0),e.reset&&(f=CE2.getSession(CE2.site?.id),E=!0),!e.record&&e.sampled&&(f.setSampled(),E=!0),e.record&&e.ratio&&(f.startRecording(e.ratio.ratio,e.ratio.getAppliedStrategy()),E=!0)}CE2.recordingSettingChanged=!1,i&&i.length?m=function(e,t,i,s,n){(0,o.Yz)("[Snapshots] Matching parameters",{pageUrl:t,ceSnapshotName:i,variantIds:s,gaData:n});const r=[],a=new Set(CE2.scriptCheckMatchingSnapshots),c=CE2.clock.getIP();if(!e||!e.length)return;const l=CE2.clock.getDateUnix();let d=null;for(let o=0;ol)?(Gt(u,"pending"),CE2.p[u.id]=u):Xt(u,t,i,s,n,c)&&(null===d&&(d=u.v),u.v===d?r.push(u):Gt(u,`incompatible format version (snapshot: ${u.v}, target:${d})`),a.add(u.id))}return a.size>0&&(CE2.scriptCheckMatchingSnapshots=CE2.Native.Array.from(a)),(0,o.Yz)("[Snapshots] Matching targets",Wt),Wt=[],r}(i,s,d,l,u):(0,o.Yz)("[Snapshots] Disabled"),m.length>0?((0,o.Yz)("[Snapshots] Matched",m),CE2.scriptCheckSelectedSnapshot=m[0].id,CE2.scriptCheckSelectedSnapshots=m.map((e=>e.id))):i&&i.length&&(0,o.Yz)("[Snapshots] No matches");const v=function(e,t){return e&&t?e.filter((e=>e.site_id===t.id)):((0,o.Yz)("[Goals] Disabled"),[])}(n,t)||[];v.length&&(0,o.Yz)("[Goals] Matched",v),CE2.tracker||(CE2.tracker=await function(e,t,i){return new Promise((s=>{t.isFull()?CE2.loadSessionTrackingScript((()=>{s(Ot(e,t,i))})):i.length>0?CE2.loadTrackingScript((()=>{s(Ot(e,t,i))})):s(Ot(e,t,i))}))}(t,f,v)),CE2.state&&(CE2.state.logHistoryEnabled=!1,CE2.state.logHistory=[]),a=!1;const w=m.map((e=>e.id)).sort().join(","),y=w!==CE2.monitorSnapshotIds,S=CE2.state?.survey===CE2.monitorSurvey;if(!(g||E||y||S))return;y&&0===m.length&&CE2.tracker.snapshots.length>0&&CE2.tracker.stopTracker("No snapshots"),CE2.monitorSession=f,CE2.monitorSnapshotIds=w,CE2.monitorSurvey=CE2.state?.survey,await function(e,t,i,s){return new Promise((n=>{i.isFull()?CE2.loadSessionTrackingScript((()=>{n($t(e,t,i,s))})):t.length>0?CE2.loadTrackingScript((()=>{n($t(e,t,i,s))})):n($t(e,t,i,s))}))}(CE2.tracker,m,f,g),f.isNew()&&f.setIsNew(!1),CE2.benchmark.stop("navigation|crazyegg|common|monitor"),CE2.benchmark.stop("navigation|crazyegg|common"),CE2.benchmark.stop("navigation|crazyegg"),CE2.benchmark.stop("navigation"),CE2.loaded=!0,CE2.benchmark.autoReport()&&setTimeout((()=>CE2.benchmark.report()),5e3)}catch(e){(0,o.Yz)(e)}},await async function(){(0,o.Yz)("[Loading] Starting Monitor"),ui&&!wt()&&(await ui(),hi=setInterval(ui,1e3))}()}else fi("No site match."),CE2.loaded=!0}catch(e){(0,o.Yz)(e)}finally{pi()}},vi=async function(){CE2.visitorTracker=si(),CE2.visitorTracker.load(),ei.load(),pi(),CE2.site={id:1,name:(0,r.R2)()},await Ei(),CE2.loadSessionTrackingScript((()=>{CE2.tracker=function(){(0,o.Yz)("[Tracker] Starting Test Mode");const e=CE2.getSession(CE2.site?.id);e.startRecording(1,"uniform");const t=new CE2.Tracker({version:CE2.VERSION,visitId:CE2.getVisitId(),session:e,censoredElements:[]});return t.update({snapshots:[{id:"testsnapshot"}]}),t.testMode=!0,t}(),We(oe,{site:CE2.site,session:CE2.tracker.session})}))},wi=async function(){CE2.benchmark.start("navigation|crazyegg|common|userdatamain"),CE2.visitId=(0,tt.M4)(0,1),CE2.bot=wt(),(0,r.ou)()?vi():CE2.commonScriptForceLoaded?(pt(),await Ei(),We(re),pi()):CE2.data?mi((()=>{CE2.benchmark.stop("navigation|crazyegg|common|userdatamain"),Ci()})):CE2.data||"string"!=typeof CE_USER_DATA_URL?((0,o.Yz)("No CE2.data nor CE_USER_DATA_URL found, stopping."),pi()):((0,o.Yz)(`No CE2.data, loading user data for CE_USER_DATA_URL=${CE_USER_DATA_URL}.`),(0,se.get)(CE_USER_DATA_URL,(e=>{CE2.data=CE2.Native.JSON.parse(e.responseText),CE2.userDataToJs&&CE2.userDataToJs(CE2.data),mi((()=>{CE2.benchmark.stop("navigation|crazyegg|common|userdatamain"),Ci()}))})))},yi=function(e,t=null){e&&(t&&(e.fingerprint=t),CE2.tracker&&CE2.tracker.notifyError(e))};class Si{constructor(e){this.callback=e||(()=>{}),this.onMouseMove=this.mouseMove.bind(this),this.onScroll=this.scroll.bind(this),this.exited=!1;const t=CE2.clock.getDeviceType();t===it.p.typeMap.desktop?(0,r.ch)(CE2.w,"mousemove",this.onMouseMove):t===it.p.typeMap.phone&&(this.prevScroll=CE2.w.scrollY||CE2.d.documentElement.scrollTop||CE2.d.body.scrollTop,(0,r.ch)(CE2.w,"scroll",this.onScroll))}mouseMove(e){e.clientY<=20&&this.onExit(),this.hoveredElement!==e.target&&clearTimeout(this.hoverTimout),this.hoveredElement=e.target;const t=e.target.closest("a");if(t&&t.href){const e=new URL(t.href,CE2.d.baseURI),i=(0,r.R2)().substr(1);new RegExp(`${i}$`,"i").test(e.hostname)||(this.hoverTimout=setTimeout((()=>{this.onExit()}),100))}}scroll(){const e=CE2.w.scrollY||CE2.d.documentElement.scrollTop||CE2.d.body.scrollTop;this.prevScroll-e>100&&this.onExit(),this.prevScroll=e}onExit(){this.destroy(),this.exited||(this.exited=!0,this.callback())}destroy(){(0,r.pQ)(CE2.w,"mousemove",this.onMouseMove),(0,r.pQ)(CE2.w,"scroll",this.onScroll),clearTimeout(this.hoverTimout)}}function bi(e){if("function"==typeof e)try{e()}catch(e){(0,o.Yz)("CE_API error:"),(0,Ze.A)(e)}}function _i(e){let t;for(CE2.Native.Array.isArray(e)||(e=[]),e.push=function(e){bi(e)};t=e.shift();)bi(t);return e}const Ii="v11.s",ki="v11.vs",Ti="v11.fs",Ni="v11.sla",Ri="v11.send",Ai="v11.ss",Di="v11.ws",Oi="v11.wss",$i="v11.wr",Pi="v11.cs",xi="v11.fsvd",Vi="v11nv",Li="v11r",Hi="v11e";class Ui{constructor({siteId:e,id:t,visitorId:i,isNew:s,full:n,webAnalytics:o,webAnalyticsRatio:a,ratio:c,strategy:l}){if(!e||!t)throw new Error("Invalid params");if(this.id=t,this.siteId=e,this.visitorId=i,this.new=s||!1,this.full=n||!1,this.webAnalytics=o||!1,this.webAnalyticsRatio=a,this.ratio=c,this.strategy=l,s)this.firstVisitData=function(){let e=CE2.w.CE_URL_FINGERPRINT(),t=CE2.w.CE_REFERER||CE2.d.referrer;return e&&(e=e.substr(0,200)),t&&(t=t.substr(0,200)),{notModifiedUrl:CE2.w.location.href,url:e,ref:t,utm:(0,r.ne)()}}();else{const e=ue.i.get(xi);this.firstVisitData=e?JSON.parse(atob(decodeURIComponent(e))):{}}}static instance(e){if(!e)throw new Error("Missing required site id");const t=parseInt(Ui.currentSiteId(),10)||e;if(t&&t!==e)return Ui.reset("site-changed"),Ui.instance(e);if(this.session&&this.session.visitorId!==CE2.visitorTracker.getId())return this.session.reset("visitor-changed"),Ui.instance(e);if(this.session&&Number.isNaN(this.session.getLastActivity()))return Ui.reset("last-activity-invalid"),Ui.instance(e);if(this.session)return this.session;const i=!Ui.currentSessionId(),s=Ui.currentSessionId()||(0,r.Jl)(),n=Ui.currentVisitorId()||CE2.visitorTracker.getId(),a=!!Ui.isFull(),c=!!Ui.hasWebAnalytics(),l=Ui.getWebAnalyticsRatio(),d=Ui.getRatio(),u=Ui.getStrategy();if(this.session=new Ui({siteId:t,id:s,visitorId:n,isNew:i,full:a,webAnalytics:c,webAnalyticsRatio:l,ratio:d,strategy:u}),this.session.store(),Ui.currentSessionId())return i&&this.session.alive(),Ui.instance(e);(0,o.Yz)("[Sessions] Failed to store session cookies")}static reset(e){ue.i.del(Ii),ue.i.del(ki),ue.i.del(Ni),ue.i.del(Ri),ue.i.del(Ai),ue.i.del(Vi),ue.i.del(Ti),ue.i.del(Di),ue.i.del(Oi),ue.i.del($i),ue.i.del(Pi),ue.i.del(Li),ue.i.del(Hi),ue.i.del(xi),delete this.session,(0,o.Yz)("[Sessions] Resetting",{reason:e})}static currentSiteId(){return ue.i.get(Pi)}static currentSessionId(){return ue.i.get(Ii)}static currentVisitorId(){return ue.i.get(ki)}static isFull(){return ue.i.get(Ti)}static hasWebAnalytics(){return ue.i.get(Di)}static getWebAnalyticsRatio(){const e=ue.i.get($i);return e&&parseInt(e,10)}static getRatio(){const e=ue.i.get(Li);return e&&parseInt(e.split(",")[0],10)}static getStrategy(){const e=ue.i.get(Li);return e&&e.split(",")[1]}static getLastActivity(){return parseInt(ue.i.get(Ni),10)}get(e){return ue.i.get(e)}set(e,t){return ue.i.set(e,t)}del(e){return ue.i.del(e)}store(){this.set(Pi,this.siteId),this.set(Ii,this.id),this.set(ki,this.visitorId),this.full&&this.set(Ti,1),this.webAnalytics&&this.set(Di,1),this.set(xi,btoa(CE2.Native.JSON.stringify(this.firstVisitData))),this.ratio&&this.set(Li,[this.ratio,this.strategy].join(",")),this.webAnalyticsRatio&&this.set($i,this.webAnalyticsRatio)}reset(e){Ui.reset(e),this.id=null}alive(){this.isInactive()||this.set(Ni,+new Date)}isExpired(){return this.isDeleted()?"isDeleted":this.isEnded()?"isEnded":!!this.isInactive()&&"isInactive"}isInactive(){const e=this.getLastActivity();if(this.id&&e){if(+new Date-e>18e5)return!0}return!1}getLastActivity(){return Ui.getLastActivity()}isEnded(){const e=parseInt(this.get(Ri),10);if(!Number.isNaN(Number(e)))return!!(this.id&&e&&+new Date-e>3e5)||(this.del(Ri),!1)}isDeleted(){return!this.get(Ii)}isNew(){return this.new}setIsNew(e){this.new=e}isFull(){return!!this.full}hasWebAnalytics(){return!!this.webAnalytics}startWebAnalytics(e){this.webAnalytics=!0,this.webAnalyticsRatio=e,this.store()}isSampled(){return!!this.get(Ai)}setSampled(){this.set(Ai,+new Date),this.store()}isWebAnalyticsSampled(){return!!this.get(Oi)}setWebAnalyticsSampled(){this.set(Oi,+new Date),this.store()}getWebAnalyticsRatio(){return this.webAnalyticsRatio}isEngaged(){return new Promise((e=>{this.get(Hi)?e(!0):setTimeout((()=>{e(this.get(Hi))}),200*Math.random())}))}setAsEngaged(){return this.set(Hi,1)}getRatio(){return this.ratio}getStrategy(){return this.strategy}getFirstVisitData(){return this.firstVisitData}startRecording(e,t){this.new=!0,this.full=!0,this.ratio=e,this.strategy=t,this.store()}numberVisits(){return parseInt(this.get(Vi),10)||0}setNumberVisits(e){return this.set(Vi,e)}end(e=!1){const t=parseInt(this.get(Ri),10);!t&&e?this.set(Ri,1):t||this.set(Ri,+new Date)}}function Mi(e){return Ui.instance(e)}function Bi(){return Ui.reset()}function Fi(){return Ui.currentSessionId()}var Wi=i(5439),zi=i(9056);function ji(e){CE2.tracker.addToCart(e)}function Yi(){CE2.tracker.startCheckout()}function Gi(e){CE2.tracker.checkoutCompleted(e)}var Ki=i(5121),qi=i(8157),Ji=i(1619),Qi=i(1814);class Xi extends Qi.A{constructor(e){super(e),CE2BH.defineProperty(this,"DIFF_INTERVAL",750),CE2BH.defineProperty(this,"SAMPLE_INTERVAL",100);const{visitId:t,version:i,censoredElements:s,site:n,session:r,goals:a}=e;this.eventHandlers={},this.commonEventHandlers={},this.censoredElements=s,this.hideIframes=n&&n.recordingSettings&&n.recordingSettings.hideIframes,this.version=i,this.clickCaptors=CE2.state.clickCaptors.concat([...CE2.d.body.getElementsByClassName("-ce-capture")]),this.site=n||{},this.session=r,this.sessionId=r.id,this.goals=a||[],this.snapshots=[],this.snapshotIds=[],this.blocked=!1,this.sampleCallbacks=[],this.diffCallbacks=[],this.isVisible=!0,this.setVisitorIDs(),this.setVisitIDs(t),this.cookies={lastSession:"v11ls"},this.site.recordingSettings&&(0,ot.e)(this.site.recordingSettings.blockedRules)&&((0,o.Yz)("[Tracker] Session page blocked"),this.blocked=!0),this.isDocumentHiddenOnce=document.hidden,this.setupCommonEventHandlers(),this.setupVisibilityChangeHandlers(),this.setupGoalEventHandlers(),this.setupEngagementEventHandlers(),this.processBuffer({scheduleTimeout:!0}),CE2.loadCEAPI(),setTimeout((()=>(0,Wi.ur)(this)))}update({session:e,snapshots:t,urlChanged:i}){this.eventHandlers.error&&this.eventHandlers.error.flush(),this.processBuffer();let s=!1;this.snapshotIds&&this.snapshotIds.sort().join(",")!==(t||[]).map((e=>e.id)).sort().join(",")&&(s=!0);const n=e&&(e.isNew()||this.session?.id!==e.id);if(e){this.session=e,this.sessionId=e.id,e.isFull()&&!this.assetsTracker&&(this.assetsTracker=new CE2.AssetTracker(this),this.assetsTracker.setup());CE2.cookieStorage.get(this.cookies.lastSession)!==(this.session&&this.session.id)&&this.resetSessionTracking()}if(this.snapshots=t||[],this.snapshotIds=this.snapshots.map((e=>e.id)),this.formatVersion=this.snapshots[0]&&this.snapshots[0].v,this.setupCommonEventHandlers(),this.setupSnapshotAndSessionEventHandlers(),i||n){(0,Ki.R)(),!n&&this.url&&this.hasWebAnalytics()&&this.commonEventHandlers.visit?.trigger(),this.url=window.location.href,this.session.hasWebAnalytics()&&(this.isNewDailyVisitor=this.visitor.isNewDailyVisitor(),this.isNewDailyReturningVisitor=this.isNewDailyVisitor&&this.visitor.isReturning()),this.setVisitIDs(),this.setupPageFingerprint();for(const e in this.commonEventHandlers)if(Object.prototype.hasOwnProperty.call(this.commonEventHandlers,e)){const t=this.commonEventHandlers[e];t.update&&t.update(n,i)}for(const e in this.eventHandlers)if(Object.prototype.hasOwnProperty.call(this.eventHandlers,e)){const t=this.eventHandlers[e];t.update&&t.update(n,i)}(this.snapshots.length||this.session?.isFull()&&!this.blocked)&&this.commonEventHandlers.visit?.trigger(),this.eventHandlers.goals?.onUrlVisit()}else s&&t?.length&&this.commonEventHandlers.visit?.trigger({snapshotOnly:!0});(n||s&&t?.length)&&this.sendCustomUserData(),n&&this.commonEventHandlers.sessionmetadata?.trigger(),n&&"function"==typeof CE_SESSION_READY&&CE_SESSION_READY(this.session),this.updated=!0}cleanup(){if(this.eventHandlers.error&&this.eventHandlers.error.flush(),this.processBuffer(),clearTimeout(this.sampleTimeout),clearTimeout(this.diffTimeout),delete this.sampleTimeout,delete this.diffTimeout,this.assetsTracker&&(this.assetsTracker.cleanup(),delete this.assetsTracker),this.eventsTargets)for(let e=0,t=Array.from(this.eventsTargets.keys());e{this.pageUnloading=!1}),1e3)}onEngagement(){this.commonEventHandlers.visit.setEngagement()}rageClick(){this.eventHandlers.error&&this.eventHandlers.error.assignAttribute("rageClicked")}notifyError(e){this.session&&this.eventHandlers.error&&this.eventHandlers.error.onError(e)}setupCommonEventHandlers(){this.commonEventHandlers.visit||=new CE2.CommonEventHandlers.Visit(this),this.commonEventHandlers.sessionmetadata||=new CE2.CommonEventHandlers.SessionMetadata(this),this.commonEventHandlers.tag||=new CE2.CommonEventHandlers.Tag(this),this.commonEventHandlers.identify||=new CE2.CommonEventHandlers.Identify(this),this.commonEventHandlers.customUserData||=new CE2.CommonEventHandlers.CustomUserData(this),(this.snapshots?.length||this.session?.isFull()||this.hasWebAnalytics())&&(this.commonEventHandlers.click||=new CE2.CommonEventHandlers.Click(this))}setupGoalEventHandlers(){this.goals.length&&(this.eventHandlers.goals||=new CE2.EventHandlers.GoalConversion(this))}setupVisibilityChangeHandlers(){this.visibilitychangeHandlerSet||(this.addEventListener("visibilitychange",(0,r.oI)(this,"onVisibilityChange")),this.addEventListener("focus",(0,r.oI)(this,"onBlurFocus")),this.addEventListener("blur",(0,r.oI)(this,"onBlurFocus")),this.visibilitychangeHandlerSet=!0)}setupSnapshotAndSessionEventHandlers(){(this.snapshots?.length||this.session?.isFull())&&(this.eventHandlers.excessiveScrolls||=new CE2.EventHandlers.ExcessiveScroll(this),this.eventHandlers.scroll||=new CE2.EventHandlers.Scroll(this),this.eventHandlers.metric||=new CE2.EventHandlers.Metric(this)),this.session?.isFull()&&!this.blocked&&(this.eventHandlers.sessionscroll||=new CE2.EventHandlers.SessionScroll(this),this.eventHandlers.mousemovement||=new CE2.EventHandlers.MouseMovement(this),this.eventHandlers.resize||=new CE2.EventHandlers.Resize(this),this.eventHandlers.activity||=new CE2.EventHandlers.Activity(this),(0,r.jI)("hide-errors")||(this.eventHandlers.error||=new CE2.EventHandlers.Error(this)),this.eventHandlers.quickback||=new CE2.EventHandlers.QuickBack(this),this.eventHandlers.form||=new CE2.EventHandlers.Form(this),this.eventHandlers.pageState||=new CE2.EventHandlers.PageState(this),this.eventHandlers.typing||=new CE2.EventHandlers.Typing(this),this.eventHandlers.visibility||=new CE2.EventHandlers.Visibility(this),this.runSampleCallbacks(),this.runDiffCallbacks()),this.beforeUnloadHandlerSet||(this.addEventListener(CE2.opera?"unload":"beforeunload",(0,r.oI)(this,"onUnload")),this.beforeUnloadHandlerSet=!0),CE2.EventHandlers?.Ecommerce&&(this.session?.isFull()||this.goals)&&(this.eventHandlers.ecommerce||=new CE2.EventHandlers.Ecommerce(this))}setupEngagementEventHandlers(){this.hasWebAnalytics()&&(this.engagementEventHandlerSet||(this.addEventListener("click",(()=>this.onEngagement())),this.addEventListener("scroll",(()=>this.onEngagement())),this.engagementEventHandlerSet=!0))}setupPageFingerprint(){delete this.pageFingerprint,delete this.pageFingerprintMd5,CE2.w.CE_URL_FINGERPRINT&&(this.pageFingerprint=CE2.w.CE_URL_FINGERPRINT()),(this.session?.isFull()||this.hasWebAnalytics())&&this.pageFingerprint&&(this.pageFingerprintMd5=(0,ni.F)(this.pageFingerprint))}addSampleCallback(e){this.sampleCallbacks.push(e)}addDiffCallback(e){this.diffCallbacks.push(e)}runSampleCallbacks(e=!0){if(this.runSampleCallbacksBind)for(let e=0,t=this.sampleCallbacks;e(t||[]).includes(i)?"":e[i]))}addToCart({productId:e,name:t,quantity:i,price:s,currency:n}){this.eventHandlers.ecommerce&&this.eventHandlers.ecommerce.addToCart([e,t,i,this.eventHandlers.ecommerce.amountInCents(s),n])}startCheckout(){this.eventHandlers.ecommerce&&this.eventHandlers.ecommerce.startCheckout()}checkoutCompleted({orderId:e,total:t,currency:i}){this.eventHandlers.ecommerce&&this.eventHandlers.ecommerce.checkoutCompleted([e,this.eventHandlers.ecommerce.amountInCents(t),i])}setVisitIDs(e){CE2.visitId=this.visitID=e||this.makeId()}setVisitorIDs(){this.visitorID=this.visitor.getId()}resetSessionTracking(){this.session?.id&&CE2.cookieStorage.set(this.cookies.lastSession,this.session.id)}identify(e,t={}){this.session&&e&&this.commonEventHandlers.identify?.trigger(e,t)}clearIdentity(){this.visitor.clearIdentity()}amountInCents(e){return e&&!Number.isNaN(Number(e))&&Math.round(1e4*parseFloat(e))}increaseSessionWorth(e,t){if(Number.isNaN(Number(e)))return!1;const i=(0,Ji.vn)(this.amountInCents(e),t);return(0,o.Yz)("[Tracker] Increase session worth",{amount:e,currency:t,finalAmount:i}),this.sendSessionWorth(i,t)}decreaseSessionWorth(e,t){if(Number.isNaN(Number(e)))return!1;const i=(0,Ji.LV)(this.amountInCents(e),t);return(0,o.Yz)("[Tracker] Decrease session worth",{amount:e,currency:t,finalAmount:i}),this.sendSessionWorth(i,t)}setSessionWorth(e,t){if(Number.isNaN(Number(e)))return!1;const i=(0,Ji.LG)(this.amountInCents(e),t);return(0,o.Yz)("[Tracker] Set session worth",{amount:e,currency:t}),this.sendSessionWorth(i,t)}sendSessionWorth(e,t){(0,$e.SJ)({number:e,currency:t});const i=[this.visitID,e,t&&3===t.length?t.toUpperCase():null,"new"],s=this.newEvent(35,{attributes:i});this.send(s)}getUserData(){const e=[],{userData:t}=CE2.state;return(0,r.__)([1,2,3,4,5],(i=>{const s=t[i];void 0!==s&&e.push(String(i),s)})),e}goalConversion({goalId:e,value:t,triggerId:i,goalName:s,isDynamic:n=!1,skipSessionWorth:r=!1}={}){const a=n&&s?`dyn-${(0,ni.F)(s)}`:null,c=!qi.r.alreadyConverted(a||e),l=n?null:(e=>CE2.Native.JSON.parse(CE2.Native.sessionStorageWrapper.read(Pe)||"{}")[e.toString()])(e),d=this.visitor.getFirstVisitData(),u=n?null:this.goals.find((({id:t})=>t===e));let h,g;if(t||n||(t=qi.r.getNextGoalConversionValue(e,i))&&(0,o.Yz)("[Goal] Using stored value",{goal:u,triggerId:i,value:t}),!t&&u&&u.triggers){const e=u.triggers.find((e=>e.id==i));e&&e.fixed_value&&(t=e.fixed_value,(0,o.Yz)("[Goal] Using fixed value",{goal:u,trigger:e,value:t}))}t&&"object"==typeof t&&t.worth&&!Number.isNaN(t.worth)&&(h=t.currency,g=t.worth,r||this.increaseSessionWorth(g,h));const p=[CE2.w.location.href,n||l?.goalId!==e?void 0:l.id,n||l?.goalId!==e?void 0:CE2.data.addons.find((({id:e})=>e===l.id))?.name,n?s:u?.name,this.visitor.getIdentification(),e||"",d.landingUrl,d.referrer,d.time?Date.now()-d.time:null,d.utm,d.userData,CE2.clock.getIP(),CE2.clock.getDeviceType(),this.visitor.isReturning(),g?Math.round(1e4*parseFloat(g)):void 0,h];n||l?.goalId!==e||((0,se.sendCounter)("cta:conversion",l.id),(e=>{const t=CE2.Native.JSON.parse(CE2.Native.sessionStorageWrapper.read(Pe)||"{}");delete t[e],CE2.Native.sessionStorageWrapper.write(Pe,CE2.Native.JSON.stringify(t))})(e));const E=(0,ie.hN)(),f=[E?.id,E?.name,E?.variantId,"",E?.realId,E?.variantRealId,this.pageFingerprint],m=[this.visitID,i||"",c,this.session?this.session.numberVisits():"",...p,...f],C=this.newEvent(26,{attributes:m});this.sendImmediatelly(C,{goalId:a||e}),c&&qi.r.recordConversion({goalId:e,dynamicId:a}),n||"function"!=typeof CE2.convertedFromFlow||CE2.convertedFromFlow(e,t),(0,o.Yz)("[Goals] Converted",{goalId:e,value:t,triggerId:i,goalName:s,isDynamic:n})}codeConversion(e,t){this.goals.forEach((i=>{i.triggers.forEach((s=>{const n=s.filter.conditions.filter((e=>"code"===e.criteria));if(0!==n.length)for(let r=0;r255)throw new Error("Goal name is too long:",e);this.goalConversion({isDynamic:!0,goalName:e,value:t})}sendCustomUserData(){this.commonEventHandlers.customUserData?.trigger()}addTag(e,t={}){if(!this.session.isFull()&&!t.virtual)return;const i=CE2.Native.Array.isArray(e)?e:[e];for(let e=0;e{for(let t=0,i=n.hooks;t0?CE2.eventTypes.PAGE_UNLOAD:CE2.eventTypes.VISIT,u=this.tracker.newEvent(d,{eventID:d===CE2.eventTypes.VISIT?this.tracker.visitID:void 0,attributes:l});this.tracker.session&&this.tracker.session.setNumberVisits(a),t?this.tracker.sendImmediatelly(u,{flow:"s"}):i?this.tracker.sendImmediatelly(u,{flow:"ss",virtual:!0}):this.tracker.send(u),i||!this.tracker.snapshots?.length&&!this.tracker.session.isFull()||this.triggerPerformance(e)}triggerPerformance(e={}){const{snapshotOnly:t}=e,i=CE2.w;this.performanceObserver&&(this.performanceObserver.disconnect(),delete this.performanceObserver),i.performance&&i.performance.getEntriesByType&&(this.handlePerformanceEntries(i.performance.getEntriesByType("navigation"),t),this.handlePerformanceEntries(i.performance.getEntriesByType("paint"),t),"undefined"!=typeof PerformanceObserver&&(this.performanceObserver=new PerformanceObserver((e=>{this.handlePerformanceEntries(e.getEntries(),t)})),this.performanceObserver.observe({entryTypes:["navigation","paint"]})))}handlePerformanceEntries(e=[],t=!1){this.tracker.isDocumentHiddenOnce||e.forEach((e=>{"navigation"===e.entryType?(e.domContentLoadedEventStart&&this.sendPerformance(CE2.eventTypes.DOM_CONTENT_LOADED,e.domContentLoadedEventStart,t),e.domInteractive&&this.sendPerformance(CE2.eventTypes.DOM_INTERACTIVE,e.domInteractive,t),e.loadEventStart&&this.sendPerformance(CE2.eventTypes.PAGE_LOAD,e.loadEventStart,t)):"first-contentful-paint"===e.name&&this.sendPerformance(CE2.eventTypes.FIRST_CONTENTFUL_PAINT,e.startTime,t)}))}sendPerformance(e,t,i=!1){if(!this.performanceEvents[e]||i){const s=[this.tracker.visitID,t],n=this.tracker.newEvent(e,{attributes:s});i?this.tracker.sendImmediatelly(n,{flow:"s"}):this.tracker.send(n),this.performanceEvents[e]=!0}}analyticsData(){if(!this.tracker.hasWebAnalytics())return null;const{isNewDailyVisitor:e,isNewDailyReturningVisitor:t}=this.tracker;this.engagementTime||=0;let i=0;this.engagementStartedAt&&(i=Date.now()-(this.lastEngagementAt||this.engagementStartedAt),this.engagementTime+=i,this.lastEngagementAt=Date.now());const s=[this.tracker.visitID,this.sequence,e,t,this.isNewSession,this.isNewSessionEngagement,this.isNewSessionEngagementTrigger,this.isNewEngagement,this.isNewEngagementTrigger,this.engagementTime,i,this.tracker.session.getWebAnalyticsRatio(),this.tracker.session.getFirstVisitData()?.url,this.tracker.session.getFirstVisitData()?.notModifiedUrl];return this.isNewEngagementTrigger=!1,this.isNewSessionEngagementTrigger=!1,s}getLanguage(){return(CE2.n.language||CE2.n.userLanguage).split("-")[0]}async setEngagement(){this.tracker.hasWebAnalytics()&&!this.engaged&&(this.engagementStartedAt=Date.now(),this.isNewEngagement=!0,this.isNewEngagementTrigger=!0,await this.tracker.session.isEngaged()||(this.tracker.session.setAsEngaged(),this.isNewSessionEngagement=!0,this.isNewSessionEngagementTrigger=!0)),this.engaged=!0}updateLastEngagementAt(){this.lastEngagementAt=Date.now()}},Click:class{constructor(e){this.tracker=e,this.opaqueElement=null,this.lastClicked=null,this.ignoredElements=CE2.state.ignoredElements.concat([...CE2.d.body.getElementsByClassName("-ce-ignore")]),this.resetLimitCount(),this.tracker.addEventListener("mousedown",(0,r.oI)(this,"onClick")),this.tracker.addEventListener("change",(0,r.oI)(this,"onChange"));for(let e=0,t=CE2.d.querySelectorAll("OBJECT, EMBED");e1&&s.height>1&&(this.tracker.addEventListener("mouseover",(0,r.oI)(this,"onOver"),i),this.tracker.addEventListener("mouseout",(0,r.oI)(this,"onOut"),i))}for(let e=0,t=CE2.d.querySelectorAll("FRAME, IFRAME");e1&&e.height>1&&(this.tracker.addEventListener("mouseover",(0,r.oI)(this,"onOver"),i),this.tracker.addEventListener("mouseout",(0,r.oI)(this,"onOut"),i))}}this.tracker.addEventListener("blur",(0,r.oI)(this,"onBlur")),this.tracker.addEventListener(CE2.opera?"unload":"beforeunload",(0,r.oI)(this,"onUnload"))}update(){this.resetLimitCount()}cleanup(){delete this.lastClicked,delete this.lastClickedTime,delete this.ignoredElements,this.resetLimitCount()}resetLimitCount(){this.clickTotal=0}overLimit(){return!!(0,r.jI)("per-visit-event-limit")&&this.clickTotal>100}onChange(e){if(e.target&&"SELECT"===e.target.tagName){this.tracker.onActivity();for(let t=0,i=e.target.querySelectorAll("option");t=13?(0,r.wt)(e):e.srcElement||e.target;if("OPTION"===t.tagName&&t.parentElement&&"SELECT"===t.parentElement.tagName)return;this.click(t,null,null,i,e)}}onBlur(){const e=this.opaqueElement;e&&e!==this.lastClicked&&(this.click(e),this.opaqueElement=null)}onUnload(){const e=this.opaqueElement;e&&this.isIgnored(e)&&(this.click(e),this.opaqueElement=null)}onClickFrame(e){this.onClick(e,!0)}onOver(e){const t=e.srcElement||e.target;this.isIgnored(t)||this.isIgnored((0,r.wt)(e))||(this.opaqueElement=t)}onOut(e){this.isIgnored(e.srcElement||e.target)||this.isIgnored((0,r.wt)(e))||(this.opaqueElement=null)}click(e,t,i,s,n){if(this.isTopLevelElement(e)||this.isIgnored(e))return;if(e=this.tracker.getElementToRecord(e),(0,r.KQ)(e))return;const o=this.tracker.getFingerprint(e),a=this.getClickPosition(t,i,o,n);a.button=s,"l"===s&&(a.clickType=this.getClickType(n)),this.lastClicked=e;const c=[this.tracker.visitID,...this.tracker.getFingerprintAttributes(o),a.x,a.y,a.button,a.pageX,a.pageY,a.clickType],l=this.tracker.newEvent(CE2.eventTypes.CLICK,{attributes:c});this.tracker.send(l)}getClickPosition(e,t,i,s){let n;const o={x:e||0,y:t||0,pageX:0,pageY:0};return s&&(s.srcElement||s.target)?(e||(n=(0,r.v$)(s),o.x=n[0]-i.pageX,o.y=n[1]-i.pageY),o.pageX=s.pageX,o.pageY=s.pageY):e&&t?(o.x=e,o.y=t):s||(o.x=o.pageX=i.width/2,o.y=o.pageY=i.height/2),o}getClickType(e){if(!e)return"";const t=(0,r.wt)(e),i=this.isClickableElement(t);let s="";return i||(s+=CE2.clickTypes.NOT_CLICKABLE),this.rageClick(e,t,i)&&(s+=CE2.clickTypes.RAGE,this.tracker.rageClick()),i&&this.authenticationButton(t)&&(s+=CE2.clickTypes.AUTH_BUTTON),s||void 0}rageClick(e,t,i){if(!e)return!1;if(e.timeStamp===this.lastEventTimeStamp)return this.lastRageValue;let s=!1;if(e.detail>2)s=!0;else if(this.lastClickedTime){const n=+new Date-this.lastClickedTime;(i&&this.lastClickedElement===t&&2!==e.detail||!i)&&n<3e3&&(s=!0)}return this.lastClickedTime=+new Date,this.lastEventTimeStamp=e.timeStamp,this.lastRageValue=s,this.lastClickedElement=t,s}authenticationButton(e){if(e.innerText){const t=e.innerText.trim().toLowerCase();return!!["sign in with","register with","authorize","join with"].some((e=>new RegExp(`^${e}`).test(t)))||["sign in","signin","signup","sign up","register","login","create account","register account","join","join us"].some((t=>t===e.innerText.trim().toLowerCase()))}}isClickableElement(e){const t=["a","a *","button","button *","input","option","select"].join(",");if((0,r.B5)(e,t))return!0;const i=getComputedStyle(e);return"pointer"===i.cursor||"text"===i.cursor||"underline"===i.textDecoration}isTopLevelElement(e){return e===document||e===document.body||e===document.documentElement}isIgnored(e){return(0,r.DQ)(this.ignoredElements,e)}},SessionMetadata:class{constructor(e){this.tracker=e}trigger(e={}){const{virtual:t}=e,i=CE2.isBot(!0);if((0,r.jI)("v11_disable_bot_detection")&&i&&(this.tracker.addTag("bot",{virtual:t}),CE2.w.serverLog&&this.tracker.visitor&&this.tracker.session))try{CE2.w.serverLog({id:this.tracker.visitor.getId(),value:`sessionid:${this.tracker.session.id}, bot:${i}`})}catch(e){(0,o.Yz)(`error logging bot reason: ${e.message}`)}const s=CE2.state.overridenRecordingSamplingRate?parseInt(100/CE2.state.overridenRecordingSamplingRate,10):function(e){if(CE2.data.sites_sampling)for(let t=0,i=CE2.data.sites_sampling;t0&&(this.tracker.addTag(CE2.sessionTags,{virtual:t}),CE2.sessionTags=[]),CE2.appliedStrategy&&this.sendSessionRatio()}sendSessionRatio(){const e=[this.siteRatio,CE2.appliedStrategy],t=this.tracker.newEvent(CE2.eventTypes.SESSION_RATIO,{attributes:e});this.tracker.send(t)}},Tag:class{constructor(e){this.tracker=e}trigger(e,t={}){const{virtual:i}=t;if(e){const t=[e],s=this.tracker.newEvent(19,{attributes:t});i?this.tracker.sendImmediatelly(s,{flow:"ss",virtual:!0}):this.tracker.send(s)}}},Identify:class{constructor(e){this.tracker=e}trigger(e,t={}){const{virtual:i}=t;if(e){const t=[e];this.tracker.visitor.identify(e);const s=this.tracker.newEvent(17,{attributes:t});i?this.tracker.sendImmediatelly(s,{flow:"ss",virtual:!0}):this.tracker.send(s)}}},CustomUserData:class{constructor(e){this.tracker=e}trigger(){const{userData:e}=CE2.state;if(e.length>0&&e.find((e=>!!e))){const t=[e[1],e[2],e[3],e[4],e[5]],i=this.tracker.newEvent(18,{attributes:t});this.tracker.send(i)}}}},is={getBox:k,scroll:v,fingerprint2:function(e,t={}){return new Q(e,t)}}},5102:()=>{!function(e){var t=e.CE2BH={};function i(){return t.extends=i=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(n[i]=e[i]);return n}}("undefined"==typeof window?self:window)},1881:(e,t,i)=>{"use strict";i.d(t,{F:()=>n});var s=i(5043);const n=i.n(s)()},55:(e,t,i)=>{"use strict";i.d(t,{O:()=>r});const s=function(){let e;const t=void 0!==i.g&&(i.g.crypto||i.g.msCrypto);if(t&&t.getRandomValues){const i=new Uint8Array(16);e=function(){return t.getRandomValues(i),i}}if(!e){const t=new CE2.Native.Array(16);e=function(){for(let e,i=0;i<16;i++)3&i||(e=4294967296*Math.random()),t[i]=e>>>((3&i)<<3)&255;return t}}return e}(),n=function(){const e=[];for(let t=0;t<256;++t)e[t]=(t+256).toString(16).substr(1);return function(t,i){let s=i||0;const n=e;return n[t[s++]]+n[t[s++]]+n[t[s++]]+n[t[s++]]+"-"+n[t[s++]]+n[t[s++]]+"-"+n[t[s++]]+n[t[s++]]+"-"+n[t[s++]]+n[t[s++]]+"-"+n[t[s++]]+n[t[s++]]+n[t[s++]]+n[t[s++]]+n[t[s++]]+n[t[s++]]}}(),r=(o=s(),a=[1|o[0],o[1],o[2],o[3],o[4],o[5]],c=16383&(o[6]<<8|o[7]),l=0,d=0,function(e,t,i){var s=t&&i||0,r=t||[],o=void 0!==(e=e||{}).clockseq?e.clockseq:c,u=void 0!==e.msecs?e.msecs:(new Date).getTime(),h=void 0!==e.nsecs?e.nsecs:d+1,g=u-l+(h-d)/1e4;if(g<0&&void 0===e.clockseq&&(o=o+1&16383),(g<0||u>l)&&void 0===e.nsecs&&(h=0),h>=1e4)throw new Error("uuid.v1(): Can't create more than 10M uuids/sec");l=u,d=h,c=o;var p=(1e4*(268435455&(u+=122192928e5))+h)%4294967296;r[s++]=p>>>24&255,r[s++]=p>>>16&255,r[s++]=p>>>8&255,r[s++]=255&p;var E=u/4294967296*1e4&268435455;r[s++]=E>>>8&255,r[s++]=255&E,r[s++]=E>>>24&15|16,r[s++]=E>>>16&255,r[s++]=o>>>8|128,r[s++]=255&o;for(var f=e.node||a,m=0;m<6;++m)r[s+m]=f[m];return t||n(r)});var o,a,c,l,d},8356:(e,t,i)=>{"use strict";i.d(t,{Ay:()=>o,Fi:()=>a,UE:()=>l,bU:()=>c});var s=i(8401),n=i(884);class r extends s.v{}const o=new r,a=()=>{const e=document.location.hash.match(/#ce-abtest-(.+)/);if(!e||!e[1])return;const t=e[1].split("."),[i,s,n]=t;return[i,s,n,t.slice(3).join(".")||null]},c=()=>!!a(),l=()=>{CE2.loadScript(CE2.data.transformations_script_url,(()=>{(0,n.Yz)("[Flows] [Preview] transformations.js chunk is loaded. Run AB test preview"),CE2.initAbTestPreview()}))}},9152:(e,t,i)=>{"use strict";i.d(t,{i:()=>n});var s=i(390);const n={CK:"_ce.s",LAST_COOKIE_WRITE_KEY:"lcw",LAST_COOKIE_WRITE_THRESHOLD:3e5,saveTimeout:null,canSave:"undefined"==typeof CE_NO_COOKIES||!CE_NO_COOKIES,expiresIn:"number"==typeof CE_COOKIE_EXPIRE_DAYS?CE_COOKIE_EXPIRE_DAYS:365,values:{},load(){if(!this.canSave)return this.values;let e,t,i=CE2.getCookie(this.CK);const s={};if(!i)return s;for(i=i.replace(/\\~/g,"\0").split("~"),e=0;t=i[e];e+=2)s[t.replace(/\x00/g,"~")]=i[e+1].replace(/\x00/g,"~");return s},getCookieRawValue(e){const t=[];return(0,s.__)(e,((e,i)=>{t.push(i.replace("~","\\~")),t.push(e.replace("~","\\~"))})),t.push(`${this.LAST_COOKIE_WRITE_KEY}~${+new Date}`),t.join("~")},save(e){this.canSave?(0,s.o)(this.CK,this.getCookieRawValue(e),{expiresInDays:this.expiresIn}):this.values=e},get(e){return this.load()[e]},set(e,t){const i=this.load(),s=`${t}`;let n=!1;const r=parseInt(i[this.LAST_COOKIE_WRITE_KEY],10);r&&+new Date-r>this.LAST_COOKIE_WRITE_THRESHOLD&&(n=!0),(i[e]!==s||n)&&(i[e]=s,this.save(i))},del(e){const t=this.load();delete t[e],this.save(t)}}},884:(e,t,i)=>{"use strict";i.d(t,{$J:()=>l,$Q:()=>r,Yz:()=>a,aE:()=>d,aQ:()=>o,cC:()=>c,dK:()=>n});const s=function(e){if(!CE2.data||!CE2.data.features)return!1;for(let t=0,i=CE2.data.features;t{const e=CE2.data&&CE2.data.dkey;return!!(e&&CE2.w&&CE2.w.location.href.indexOf(`ced=${e}`)>-1)||(!!s("remote-logs")||"undefined"!=typeof CE_DEBUG&&CE_DEBUG)},r=()=>"undefined"!=typeof CE_DEBUG&&CE_DEBUG>=2,o=(e,t)=>{CE2.n.sendBeacon&&CE2.n.sendBeacon(CE2.data.v11_tracking_dest.replace("v11","debug"),CE2.Native.JSON.stringify({siteId:CE2.site?.id,userId:CE2.data.uid,type:e,data:CE2BH.extends({version:CE2.VERSION,ts:+new Date},t)}))},a=(e,t)=>{if(CE2.state.logHistoryEnabled&&CE2.state.logHistory.push(e),s("remote-logs")){const i=t?CE2.Native.JSON.stringify(t).substring(0,120):"";o("logs",{visitorId:CE2.visitorTracker?.getId(),visitId:CE2.getVisitId&&CE2.getVisitId(),sessionId:CE2.getSessionId&&CE2.getSessionId(),msg:e,obj:i})}if(!n())return!1;let i;i="string"==typeof e?`CE: ${e}`:e;const r=[i];if(t&&r.push(t),"undefined"!=typeof window){const{console:e}=CE2.Native;e&&e.log&&e.log(...r)}},c=(e,t)=>{if(!r())return!1;a(e,t)},l=function(){return void 0!==CE2.w.CE_BENCHMARK&&CE2.w.CE_BENCHMARK||(CE2&&CE2.w&&CE2.w.location.href.indexOf("ceb=#{data[:dkey]}"))>-1},d={autoReport:()=>void 0!==CE2.w.CE_BENCHMARK&&CE2.w.CE_BENCHMARK||window.location.href.indexOf("ceb=#{data[:dkey]}")>-1,start:(e,t=[])=>{if(CE2.benchmark.stopped)return;CE2.benchmarks.find((t=>t.name===e))||CE2.benchmarks.push({name:e,tags:t,startedAt:new Date})},stop:e=>{if(CE2.benchmark.stopped)return;const t=CE2.benchmarks.find((t=>t.name===e));t&&!t.diff&&(t.diff=+new Date-+t.startedAt)},report:()=>{const e=["CE: [Benchmark]",""];for(let t=0,i=CE2.benchmarks;t{"use strict";i.d(t,{D:()=>n,p:()=>s});const s={types:{desktop:{name:"desktop",fullName:"Desktop",code:1,display:{width:1280,height:800},viewport:{width:1280,height:800},userAgent:null},phone:{name:"phone",fullName:"Phone",code:2,display:{width:320,height:480},viewport:{width:980,height:1091},userAgent:"Mozilla/5.0 (Android 7.0; Mobile; rv:60.0) Gecko/60.0 Firefox/60.0"},tablet:{name:"tablet",fullName:"Tablet",code:3,display:{width:800,height:1280},viewport:{width:980,height:1568},userAgent:"Mozilla/5.0 (Android 7.0; Tablet; rv:60.0) Gecko/60.0 Firefox/60.0"}},codeMap:{1:"desktop",2:"phone",3:"tablet"},typeMap:{desktop:1,phone:2,tablet:3}},n=function(e){return(CE2.Native.Array.isArray(e)?e:[e]).map((e=>s.typeMap[e])).includes(CE2.clock.getDeviceType())}},4794:(e,t,i)=>{"use strict";i.d(t,{M4:()=>n,T:()=>s,vU:()=>o});const s=function(){const e=navigator.userAgent;CE2.opera=CE2.ie=CE2.chrome=CE2.safari=CE2.firefox=!1;let t="unknown";return CE2.w&&CE2.w.opera&&"function"==typeof CE2.w.opera.version?(t="opera",CE2.opera=!0,CE2.operaVersion=parseInt(CE2.w.opera.version(),10)):/\bMSIE\b/.test(e)?(t="ie",CE2.ie=!0,CE2.ieVersion=parseInt(/MSIE (\d+)\.\d+/.exec(navigator.userAgent)[1],10),CE2.ieQuirksMode="BackCompat"==document.compatMode):/\b(iPhone|iP[ao]d)\b/.test(e)?(t="iphone",CE2.iphone=!0,CE2.webkit=!0,/AppleWebKit/.test(navigator.appVersion)&&(t="safari",CE2.safari=!0)):/\bChrome\b/.test(e)?(t="chrome",CE2.chrome=!0,CE2.webkit=!0):/AppleWebKit/.test(navigator.appVersion)?(t="safari",CE2.safari=!0,CE2.webkit=!0):/Mozilla/i.test(e)&&!/compatible|webkit/i.test(e)&&(t="firefox",CE2.firefox=!0),CE2.webkit&&(CE2.webkitVersion=parseInt(/AppleWebKit\/(\d+)/.exec(e)[1],10)),t}(),n=function(e,t){const{crypto:i}=CE2.w,s="function"==typeof CE2.w.btoa&&CE2.w.btoa;let n,r,o,a="";if(e=e||20,i&&i.getRandomValues){const t=new Uint8Array(e);i.getRandomValues(t),n=CE2.Native.Array.from(t)}else for(n=new CE2.Native.Array(e),r=0;rString.fromCharCode(e))).join(""),s(a).replace(/\+/g,"-").replace(/\//g,"_").replace(/\=+$/,"");for(r=0;r{"use strict";i.d(t,{O:()=>r,R:()=>n});const s=new Set;function n(){s.clear()}function r(e,t){return t.filter((t=>!function(e,t){const i=function(e,t){const i=t?.[0]?.[0];if(!i)return;const s=[];return!e.snapshotIds||e.flow&&"s"!==e.flow||s.push(`s-${e.snapshotIds.join(",")}`),!e.sessionId||e.flow&&"ss"!==e.flow||s.push(`ss-${e.sessionId}`),!e.goalId||e.flow&&"g"!==e.flow||s.push(`g-${e.goalId}`),!e.abTestId||e.flow&&"ab"!==e.flow||s.push(`ab-${e.abTestId}`),s.push(i),s.join(":")}(e,t);return!(!i||!s.has(i)&&(s.add(i),1))}(e,t)))}CE2.state&&(CE2.state.knownEventIds=s)},8401:(e,t,i)=>{"use strict";i.d(t,{v:()=>n});const s=()=>({events:{},emit(e,...t){const i=this.events[e]||[];for(let e=0,{length:s}=i;e{this.events[e]=this.events[e]?.filter((e=>t!==e))}},exists(e,t){return this.events[e]&&1===this.events[e].filter((e=>e===t)).length}});class n{constructor(){this.emitter=s()}on(e,t,i){if(!i||!this.emitter.exists(e,t))return this.emitter.on(e,t)}once(e,t,i=!1){if(i&&this.emitter.exists(e,t))return;const s=this.on(e,(async(...e)=>(s(),t(...e))))}emit(...e){return this.emitter.emit(...e)}}},3032:(e,t,i)=>{"use strict";i.d(t,{A:()=>o,o:()=>r});var s=i(884),n=i(4933);const r=function(){const e={};return e.sendError=function(e){try{if(CE2.data&&CE2.data.error_tracking){const t={url:window.location.href,error:e.type,error_name:e.name,filename:e.filename};e.message&&(t.error_description=e.message.toString()),e.error&&e.error.stack&&(t.stack=e.error.stack.toString()),(0,n.send)(`${CE2.data.error_tracking_dest}?u=${encodeURIComponent(CE2.data.uid)}`,CE2.Native.JSON.stringify(t),{sendBeacon:!0})}}catch(e){}},e.listen=function(){if(!CE2.data.error_tracking_dest||!CE2.data||!CE2.data.uid)return;const e=CE2.data.error_tracking_script_url;window.addEventListener("error",(t=>{try{if((0,s.Yz)(`Error Tacking: Error Event '${t}'`),!t.filename)return;(0,s.Yz)(`Error Tacking: Error filename '${t.filename}'`),t.filename.includes(e)&&this.sendError(t)}catch(e){}}))},e}(),o=e=>{(e instanceof Error||e instanceof TypeError)&&((0,s.Yz)(e),r&&r.sendError&&r.sendError(e))}},7823:(e,t,i)=>{"use strict";i.d(t,{D8:()=>o,W2:()=>r,hN:()=>c,lD:()=>a});var s=i(9152);const n="flvl",r=(e,t)=>{const i=s.i.get(n)||"";i.includes(e)||s.i.set(n,`${i},${e}:${t}`)},o=()=>{s.i.del(n)},a=()=>{const e=(s.i.get(n)||"").split(",").flatMap((e=>{const[t,i]=e.split(":");return t&&CE2.data.flows?.[t]?{id:t,name:CE2.data.flows?.[t]?.name,variantId:i}:[]}));return e.length?e[e.length-1]:null},c=()=>{const e=a();if(!e)return null;const t=CE2.data.flows?.[e.id],i=t?.variants?.[e.variantId];return{id:e.id,name:e.name,variantId:e.variantId,realId:t?.realId,variantRealId:i?.realId}}},5265:(e,t,i)=>{"use strict";i.d(t,{f:()=>n});const s={};!function(e){function t(){if(!(this instanceof t))return new t;this.boundary=`------RWWorkerFormDataBoundary${Math.random().toString(36)}`;const e=this.data=[];this.__append=function(t){let i,s=0;if("string"==typeof t)for(i=t.length;s{"use strict";i.d(t,{A:()=>r});var s=i(8401);class n extends s.v{}const r=new n},4933:(e,t,i)=>{"use strict";i.r(t),i.d(t,{descriptiveEventType:()=>h,get:()=>g,send:()=>p,sendCounter:()=>f,sendEvents:()=>m,sendForm:()=>E});var s=i(5265),n=i(884),r=i(390),o=i(3455),a=i(98),c=i(5121);"undefined"==typeof CE2&&(self.CE2={}),void 0===CE2.state&&(CE2.state={});const{state:l}=CE2;let d,u;l.testModeRequests=[];const h=e=>{if(!CE2.eventTypes)return`event_type=${e}`;if(!d){d={},u=null;for(let e=0,t=Object.keys(CE2.eventTypes);eu.length)&&(u=i)}}let t=d[e];const i=u.length-t.length;for(let e=0;e{const s=CE2.getNativeXMLHttpRequest();s.onreadystatechange=function(){4==s.readyState&&t(s)},s.open("GET",e,!0),i&&(s.responseType=i),s.send()},p=(0,a.fY)((e=>e.includes("clock")),((e,t,i={})=>{if((0,r.ou)())return l.testModeRequests.push({url:e,data:t,options:i}),void(i.callback&&i.callback({responseText:""}));const o=i.sendBeacon&&CE2.n&&CE2.n.sendBeacon;let a=i.contentType||"text/plain";if(o&&CE2.n&&CE2.n.sendBeacon)CE2.n.sendBeacon(e,t),i.callback&&i.callback();else{if("undefined"==typeof XMLHttpRequest)return void(0,n.Yz)("XMLHttpRequest not supported");i.retries||(i.retries=0);const r=CE2.getNativeXMLHttpRequest();r.onreadystatechange=function(){if(i.callback&&4==r.readyState){if((!r.status||429===r.status||r.status>=500&&r.status<600)&&i.retry&&i.retries{p(e,t,i)}),1e3);i.callback(r)}},r.open(i.method||"POST",e),t instanceof s.f&&(t.__endedMultipart||t.__append(`--${t.boundary}--\r\n`),t.__endedMultipart=!0,a=`multipart/form-data; boundary=${t.boundary}`,t=new Uint8Array(t.data)),r.setRequestHeader("Content-type",a),r.send(t)}})),E=(e,t,i={})=>{p(e,(e=>{let t="";const i=encodeURIComponent;return(0,r.__)(e,((e,s)=>{null!=e&&(0,o.b)(`${e}`)&&(t.length&&(t+="&"),t+=`${i(s)}=${i(e)}`)})),t})(t),CE2BH.extends(i,{contentType:"application/x-www-form-urlencoded"}))},f=(e,t)=>{if(!e||!t)return;const i={metric:e,id:t},s=CE2.data.counters_dest;p(s,CE2.Native.JSON.stringify(i),{contentType:"application/json"})},m=(e,t)=>{let i;try{i=(0,c.O)(e,t);const s=[];s.push(`u=${encodeURIComponent(e.userId)}`),s.push(`st=${encodeURIComponent(e.siteId)}`),e.snapshotIds?.length&&s.push(`s=${encodeURIComponent(e.snapshotIds.join(","))}`),e.flow&&s.push(`f=${encodeURIComponent(e.flow)}`),e.sessionId&&s.push(`ss=${encodeURIComponent(e.sessionId)}`),e.pageFingerprintMd5&&s.push(`p=${encodeURIComponent(e.pageFingerprintMd5)}`),e.goalId&&s.push(`g=${encodeURIComponent(e.goalId)}`),e.abTestId&&s.push(`ab=${encodeURIComponent(e.abTestId)}`),e.pv&&s.push("pv=1"),e.t&&s.push(`t=${e.t}`),CE2.data.tracking_key&&s.push(`tk=${encodeURIComponent(CE2.data.tracking_key)}`);const r=[];for(let t=0,s=i;t{"use strict";i.d(t,{Bi:()=>_e,MH:()=>ye,mF:()=>ke,$K:()=>ve,SJ:()=>be,ww:()=>Se});const s="all",n="any",r="greater_than",o="less_than",a="equals",c="at_least",l="at_most",d="between",u="and",h={matchUrl:"matchUrl",matcher:"matcher",debug:"debug",browserAPI:"browserAPI"},g="new_or_returning",p="referrer",E="landing_page",f="visited_page",m="browser",C="device",v="country",w="os",y="screen_width",S="screen_height",b="pages_viewed",_="duration",I="var1",k="var2",T="var3",N="var4",R="var5",A="profile",D="tags",O="day_of_week",$="utm_source",P="utm_medium",x="utm_campaign",V="utm_term",L="utm_content",H="goal_code",U="goal_conversions",M="clicked_cta",B="answered_survey",F="click",W="form_submission",z="pixel_event",j="ecommerce_event",Y="query_param",G="visitor_id",K="max_worth",q={desktop:"desktop",tablet:"tablet",phone:"phone"},J="minutes",Q="hours",X="days";function Z(e,t,i){const s=e.target||e.srcElement;if(t.criteria!==W||"FORM"!==e.type)return!0;for(let e=0,n=t.value;et.sync_selectors||t[`selector_for_${e}`])):null;if(!i)return null;if(t.sync_selectors){return Object.values(q).map((e=>t[`selector_for_${e}`])).find((e=>!!e))||null}return i[`selector_for_${e}`]||null}function te(e,t){return new RegExp(`^${e.split("*").map((e=>e.split("?").map((e=>e.replace(/[-/\\^$*+?.()|[\]{}]/g,"\\$&"))).join("."))).join(".*")}$`).test(t)}const ie=[F,W,z,j];class se{constructor({state:e,providers:t}){this.providers=t,this.state={},this.reset(e),this.matcher=t.matcher(this.state,t)}reset(e={}){CE2BH.extends(this.state,CE2BH.extends({},{[g]:null,[p]:null,[E]:null,[f]:null,[m]:null,[C]:null,[v]:null,[y]:0,[S]:0,[b]:0,[_]:0,[I]:null,[k]:null,[T]:null,[N]:null,[R]:null,[A]:{},[D]:[],[O]:(new Date).getDay(),[$]:null,[P]:null,[x]:null,[V]:null,[L]:null,[H]:null,[G]:null,[U]:[],[M]:[],[F]:[],[W]:[],[z]:[],[j]:[],[Y]:{}},se.cleanup(e))),this.debug("reset state",this.state)}static cleanup(e){const t={};if(!e)return t;for(let i=0,s=Object.keys(e);iie.includes(e.criteria)))&&!t)return!1;if(t){if(!e.conditions.every((e=>!ie.includes(e.criteria)||this.state[e.criteria]?.includes(t))))return!1}return this.matcher.match(e)}evaluateEvent(e,t,i){const s=this.providers[h.browserAPI],n=this.providers[h.matchUrl];for(let r=0;re.api===i.api&&(("string"!=typeof e.id||e.id.replace(/^(G|AW)-/,"")===i.id)&&("string"!=typeof e.event||e.event.toLowerCase()===i.type.toLowerCase()))))&&this.state[r.criteria].push(o.id)}if(t===j){r.value.find((e=>("string"!=typeof e.api||e.api===i.api)&&("string"!=typeof e.event||e.event.toLowerCase()===i.type.toLowerCase())))&&this.state[r.criteria].push(o.id)}}}}this.debug("evaluateEvent",{criteria:t,state:this.state[t]})}append(e,t){const i=this.state[e]||[];i.includes(t)||(this.state[e]=[...i,t])}update(e){for(let t=0,i=Object.entries(e);tthis.evaluate(e,t);return u===t?e.every(i):e.some(i)}evaluate(e){if(e.operator&&Array.isArray(e.conditions))return this.isMatched(e.conditions,e.operator);if(!e.value)return!1;const t=this.providers[h.matchUrl];switch(e.criteria){case g:case m:case C:case v:case w:case O:case D:case I:case k:case T:case N:case R:case G:case H:case U:case M:case B:{const t=Array.isArray(e.value)?e.value:[e.value];if(e.comparison===s){const i=Array.isArray(this.state[e.criteria])?this.state[e.criteria]:[this.state[e.criteria]];return JSON.stringify(t.sort())===JSON.stringify(i.sort())}const i=this.state[e.criteria],r=Array.isArray(i)?t.some((e=>i.includes(e))):t.includes(i);return e.comparison===n?!0===r:!1===r}case $:case P:case x:case V:case L:{const t=Array.isArray(e.value)?e.value:[e.value],i=Array.isArray(this.state[e.criteria])?this.state[e.criteria]:[this.state[e.criteria]];if(e.comparison===s)return t.every((e=>i.some((t=>te(e,t)))));const r=t.some((e=>i.some((t=>te(e,t)))));return e.comparison===n?!0===r:!1===r}case _:{const t=this.state[e.criteria],i=(e,t)=>t===J?60*e:t===Q?3600*e:t===X?86400*e:e;if(e.comparison===d){const{min:s,max:n,unit:r}=e.value;return i(s,r)<=t&&t<=i(n,r)}const{count:s,unit:n}=e.value,u=i(s,n);return e.comparison===c?u<=t:e.comparison===l?u>=t:e.comparison===r?ut:e.comparison===a&&u===t}case y:case S:case b:{const t=Number(this.state[e.criteria]);return e.comparison===a?e.value===t:e.comparison===r?e.valuet:e.comparison===c?e.value<=t:e.comparison===l?e.value>=t:e.comparison===d&&(e.value.min<=t&&t<=e.value.max)}case f:case E:case p:{const i=e.value.map((i=>t(i,this.state[e.criteria])));return e.comparison===n?i.includes(!0):i.every((e=>!1===e))}case F:case W:case z:case j:return!0;case Y:{const t=this.state[e.criteria]?.[e.name];return void 0!==t&&e.value.some((t=>te(t,this.state[e.criteria]?.[e.name])))}case K:{const t=this.state[e.criteria];if(!t||t.currency!==e.value.currency)return!1;const i=t.number,s=e.value.number;switch(e.comparison){case r:return i>s;case o:return i=s;case l:return i<=s;default:return!1}}}}debug(...e){this.providers.debug(...e)}}function re(e){const t=e.filter((e=>"object"!=typeof e)),i=e.filter((e=>"object"==typeof e));console.log("CE: [SegmentTracker]",t.join(" "),...i,"\n")}function oe(){return{[h.debug]:(...e)=>{window.CE_DEBUG&&re(e)},[h.matchUrl]:()=>!1,[h.matcher]:(...e)=>new ne(...e),[h.browserAPI]:{matchesSelector(e,t,i){let s=t;return i&&(s+=`,${t} *`),e.matches(s)}}}}var ae=i(390),ce=i(5909),le=i(884),de=i(1619);const ue="segment",he="segment-no-op",ge="~",pe={Windows:"Windows","Windows Phone":"Windows Phone",Android:"Android",Linux:"Linux",iOS:"iOS",macOS:"macOS"};let Ee,fe;function me(){if(Ee)return Ee;const e=navigator.userAgentData?.platform;if(e)return Ee=pe[e]||"Other";const t=navigator.userAgent;return Ee=/Windows Phone/i.test(t)?"Windows Phone":/Windows/i.test(t)?"Windows":/iPhone|iPad|iPod/i.test(t)?"iOS":/Android/i.test(t)?"Android":/Macintosh/i.test(t)&&navigator.maxTouchPoints>1?"iOS":/Mac OS X|Macintosh/i.test(t)?"macOS":/Linux/i.test(t)?"Linux":"Other"}function Ce(){const{clock:e}=CE2,{visitorTracker:t}=CE2,i=new URL(window.location.href).searchParams,{landingUrl:s,userData:n,utm:r}=t.getFirstVisitData()||{},o=window.innerWidth||window.screen.availWidth,a=window.innerHeight||window.screen.availHeight;return{device:{1:"desktop",2:"phone",3:"tablet"}[e.getDeviceType()],visited_page:window.location.href,referrer:document.referrer,new_or_returning:t.returningState().state,landing_page:s,screen_width:o,screen_height:a,pages_viewed:0,duration:0,var1:n[0],var2:n[1],var3:n[2],var4:n[3],var5:n[4],profile:{},tags:CE2.sessionTags||[],day_of_week:(new Date).getDay(),utm_source:r[0],utm_medium:r[1],utm_term:r[2],utm_content:r[3],utm_campaign:r[4],goal_code:i.get("code"),browser:e.getBrowser(),country:e.getCountry(),os:me(),visitor_id:t.getId(),query_param:(0,ae.q5)(window.location.search.substring(1))||{},max_worth:(0,de.Ok)()}}function ve(){fe&&fe.reset(Ce())}function we(){return function({state:e,providers:t}){return new se({state:e,providers:CE2BH.extends({},oe(),t)})}({state:Ce(),providers:{matchUrl({url:e,flags:t},i){let s=t?t.join():"";return e[0]===ge&&(e=e.substring(0),s+="r"),(0,ce.$)(e.toLowerCase(),i,s)},debug(){}}})}function ye(){return fe||(fe=we())}function Se(e,t){ye().append(e,t)}function be(e){(0,le.Yz)("[Segments] Updating max_worth"),ye().update({max_worth:e})}function _e(e,t){const{segments:i}=CE2.data;i&&0!==i.length&&ye().evaluateEvent(i,e,t)}function Ie({resourceType:e,resourceId:t}){if(!e||!t)return!1;const i=(CE2.data.segments||[]).filter((i=>(i.resources||[]).find((i=>i.resource_type===e&&String(i.resource_id)===String(t))))),s=[];for(let e=0;e0}function ke({resourceType:e,resourceId:t},i){if(ye().update({visited_page:window.location.href}),(0,ae.jI)(ue))return Ie({resourceType:e,resourceId:t});if((0,ae.jI)(he)){const s=Ie({resourceType:e,resourceId:t}),n=i();return s!==n&&(0,le.aQ)(he,{url:window.location.href,stateUrl:ye().state.visited_page,resourceType:e,resourceId:t,segmentMatched:`${s}`}),n}return i()}},3455:(e,t,i)=>{"use strict";i.d(t,{b:()=>n,re:()=>s});const s=function(){const e="[\\s\\u00a0\\u2028\\u2029]+";return{whitespace:new RegExp(e,"g"),strip:new RegExp(`^${e}|${e}$`,"g"),href:/\bhref="(.*?)"/i,ipHost:/^([\d\.]+|\[[a-f\d:]+\])$/i}}(),n=(e,t)=>{const i=e.replace(s.strip,"");return t?i.replace(s.whitespace," "):i}},6645:(e,t,i)=>{"use strict";i.d(t,{j:()=>n});var s=i(390);const n=function(e){if(this.src=e,this.protocol=this.host=this.port=this.path=this.qs=this.hash=this.query=null,e){const t=typeof e;"string"==t?this.initWithString(e):"object"==t&&this.initWithURI(e)}};n.pattern=/^\s*([\S]+?:\/\/)?([^\s\/]+?@)?([^:\/\?\#]+)?(\:\d+)?(\/?[^#\?\s]*)?([\?][^#\s]*)?([#]\S+)?/i,n.prototype={initWithString(e){const t=n.pattern.exec(e),[i,r,o,a,c,l,d,u]=t;var h;r||"/"==e.charAt(0)||a&&!("string"!=typeof(h=a)||-1===h.indexOf(".")&&"localhost"!==h||(h=new URL(`http://${h}`).hostname,!/^[a-zA-Z0-9-.]{1,253}\.?$/g.test(h)||(h.endsWith(".")&&(h=h.slice(0,h.length-1)),h.length>253||!h.split(".").every((e=>/^([a-zA-Z0-9-]+)$/g.test(e)&&e.length<64&&!e.startsWith("-")&&!e.endsWith("-"))))))?(r&&(this.protocol=r.substr(0,r.indexOf(":"))),this.host=a||null,c&&(this.port=Number(c.substr(1))),l?this.path=(0,s.x4)(l):this.host&&(this.path="/")):this.path=(0,s.x4)((a||"")+(l||"")),d&&(this.qs=(0,s.q5)(d.substr(1)),this.query=d.substr(1)),u&&(this.hash=(0,s.x4)(u.substr(1)))},initWithURI(e){(0,s.__)(e,(function(e,t){this[t]=e}),this)},isAbsolute(){return this.isURL()||this.path&&"/"==this.path.charAt(0)},isURL(){return this.protocol&&this.host},getDomain(){return this.host&&this.host.replace(/^(www|m)\./,"")},getHost(){return this.host+(this.port?`:${this.port}`:"")},getOrigin(){return`${this.protocol}://${this.getHost()}`},getFullUrl(){const e=this.query?`?${this.query}`:"";return`${this.getOrigin()}${this.path}${e}`},join(e){const t=new n(this);let{path:i}=this;return"string"==typeof e&&(e=new n(e)),e.isURL()?new n(e):(e.isAbsolute()?i=e.path:i?(i=i.split("/"),i.pop(),i=e.path?i.concat(e.path.split("/")):i,i=i.join("/")):i=this.isURL()?`/${e.path}`:e.path,t.path=i,t.qs=e.qs,t.hash=e.hash,t)},normalize(){if(!this.path)return;let e;CE2.ie&&CE2.ieVersion<9?(e=[],"/"==this.path.charAt(0)&&e.push(""),e=e.concat(this.path.split(/\/+/g)),"/"==this.path.charAt(this.path.length-1)&&e.push("")):e=this.path.split(/\/+/g);let t,i=0;do{if(t=e.length-1,".."==e[i+1])""==e[i]&&0==i?e.splice(i+1,1):(e.splice(i,2),i-=1);else if("."==e[i]){if(0==t)break;e.splice(i,1)}else i++}while(i<=t);this.path=e.join("/")},simplify(e){let t;const i=[];if(t="file"==this.protocol?this:CE2.ie?e?e.join(this):this:(e=e||new n(CE2.d.baseURI)).join(this),t.normalize(),t.host&&i.push(t.host.replace(/^(www|m)\./,"")),null!=t.port&&i.push(`:${t.port}`),"/"==t.path||/^\/(default|home|index)\b[^\/]*$/i.test(t.path)?(t.qs||t.hash)&&i.push("/"):i.push(t.path),t.qs){const e=[];(0,s.__)(t.qs,((t,i)=>{t&&!/(^sess|^sid$|^phpsessid$|^jsessionid$|^__VIEWSTATE$)/i.test(i)&&e.push(`${encodeURIComponent(i)}=${encodeURIComponent(t)}`)})),e.length&&i.push(`?${e.join("&")}`)}return t.hash&&i.push(`#${t.hash}`),i.join("")},sameOrigin(e){return!!e&&("string"==typeof e&&(e=new n(e)),null==e.host||e.host==this.host&&e.port==this.port&&e.protocol==this.protocol)}}},5909:(e,t,i)=>{"use strict";i.d(t,{$:()=>l,e:()=>d});var s=i(390),n=i(6645),r=i(3032);const o=function(e,t,i=!1){e&&e(t,i)},a=function(e,t){try{const i=e.includes("://")?"":"https?://(www.)?";let s=e.split("#"),n=s[0];const r=s.length>1?s[1]:"";s=n.split("?"),[n]=s;const o=s.length>1?s[1]:"",a=new RegExp(`^${i}${n.replace(/[.+^$?{}()|[\]\\]/g,"\\$&").replace(/\*/g,"(.*?)")}$`,"i"),c=new URL(t),l=a.test(c.origin+c.pathname);let d=!0,u=!0;if(r){d=new RegExp(`^#${r.replace(/[.+^$?{}()|[\]\\]/g,"\\$&").replace(/\*/g,"(.*?)")}$`,"i").test(c.hash||"")}if(o)if("*"===o)u=u=c.searchParams.toString().length>0;else{const e=o.split("&"),t=new URLSearchParams(c.search);u=e.every((e=>{const[i,s]=e.split("="),n=s?new RegExp(`^${s.replace(/[.+^$?{}()|[\]\\]/g,"\\$&").replace(/\*/g,"(.*?)")}$`,"i"):null;return t.has(i)&&(!n||n.test(t.get(i)))}))}return l&&u&&d}catch(e){return(0,r.A)(e),!1}},c=function(e,t){try{let i=RegExp(e,"i").test(t);return i||(i=RegExp(e,"i").test(decodeURI(t))),i}catch(e){return(0,r.A)(e),!1}},l=function(e,t,i,l,d,u){const{stringify:h}=CE2.Native.JSON,g=/(default|index)($|\..*)/i;let p,E,f,m,C,v,w,y=!1;if(""===e&&""===t)return!0;if(!e||!t)return!1;if(l&&l.indexOf(CE2.clock.getDeviceType())<0)return o(u,`device=${CE2.clock.getDeviceType()} allowed=${h(l)}`,w),!1;if(/n/.test(i=i||""))return w=e.trim()===t.trim(),o(u,`name=${t} allowed=${e}`,w),w;if(/go/.test(i)){const i=e.split(".");return w=t&&t[i[1]]==i[2],o(u,`googleOptimize=${h(t)} allowed=${h(e)}`,w),w}const S=[t];try{const e=new URL(t),i=e.pathname,s=e.search,{hash:n}=e;if(i.endsWith("/")){const t=i.slice(0,-1);S.push(e.origin+t+s+n)}i.endsWith("/")||S.push(`${e.origin}${i}/${s}${n}`);const r=i.replace(g,"");if(r!==i&&(S.push(e.origin+r+s+n),r.endsWith("/"))){const t=r.slice(0,-1);S.push(e.origin+t+s+n)}const o=[...S];for(let e=0;e{if(D[t]!==e)return y=!0,!1})),y)return o(u,`querystring=${h(D)} allowed=${h(O)}`),!1;if(m&&((0,s.__)(D,((e,t)=>{if(e!=O[t])return y=!0})),y))return o(u,`querystring=${h(D)} allowed=strict|${h(O)}`),!1;const $=e.hash||"",P=b.hash||"";return m=/#/.test(i),(m||$)&&$!=P?(o(u,`hash=${P} allowed=${$}`),!1):(o(u,`url=${t}`,!0),!0)},d=e=>{let t,i;if(e&&e.length)for(t=0;i=e[t++];)if(l(i.u,CE2.w.location.href,i.o))return!0;return!1}},390:(e,t,i)=>{"use strict";i.d(t,{Ap:()=>h,B5:()=>s.B5,CU:()=>Q,DQ:()=>Y,Ep:()=>T,GE:()=>$,GO:()=>W,I3:()=>A,IS:()=>L,Jl:()=>o.O,KQ:()=>q,KT:()=>E,LB:()=>w,OR:()=>y,Qb:()=>D,R2:()=>b,Rc:()=>U,Ri:()=>S,UO:()=>O,Wb:()=>R,Xe:()=>l,Yj:()=>I,_3:()=>v,__:()=>p,bA:()=>J,bn:()=>K,ch:()=>E,ex:()=>V,hZ:()=>m,ib:()=>x,jI:()=>z,jM:()=>C,ne:()=>B,o:()=>_,oI:()=>F,ou:()=>d,pQ:()=>f,q5:()=>g,uh:()=>k,v$:()=>G,wt:()=>s.EW,x4:()=>u});var s=i(6385),n=i(3455),r=i(884),o=i(55),a=i(98);let c;const l=e=>{if(!e)return;CE2.state.ignoredElements.push(e);const{tracker:t}=CE2;t&&t.ignoredElements.push(e)},d=function(){return"undefined"!=typeof CE_TEST_MODE&&CE_TEST_MODE},u=e=>{try{return decodeURIComponent(e)}catch(t){return CE2.w.unescape(e)}},h=e=>{if(CE2.Native.Array.isArray(e))for(let t=0;t{if(null==e||/^\s*$/.test(e))return null;const i={},s=e.replace(/\+/g," ").split(t||"&");let n,r,o=null,a=null,c=null;const l=Object.getOwnPropertyNames(Object.prototype);for(n=0,r=s.length;n{if(!e)return;let s;if("number"==typeof e.length&&"function"==typeof e.concat)for(let n=0,r=e.length;n{e.addEventListener(t,i,!0)},f=(e,t,i)=>{e.removeEventListener(t,i,!0)},m=(e,t)=>{(e=parseInt(e,10))>=1&&e<=5&&(CE2.state.userData[e]=String(t));const{tracker:i}=CE2;i&&i.sendCustomUserData&&i.sendCustomUserData()},C=(...e)=>{const{tracker:t}=CE2;if(t)return t.click(...e)},v=e=>null==e.r||(!1!==e.r&&!0!==e.r&&(Math.random()>=1/e.r?((0,r.Yz)(`Snapshot ${e.id} not selected due to snapshot sampling: ${e.r}`),e.r=!1):e.r=!0),e.r),w=(e,t,i,s)=>{if(!0===CE2.site?.settings?.ignoreDnt)return!1;if(s&&void 0!==e.external)try{if(!0===e.external.InPrivateFilteringEnabled())return!0}catch(e){}const n=t.doNotTrack||i.doNotTrack||i.msDoNotTrack||e.doNotTrack;return"1"==n||"yes"==n},y=function(){try{return g(a.Ew.read(),/;\s*/g)||{}}catch(e){return{}}},S=function(e){return y()[e]},b=function(){const{w:e}=CE2;if(!CE2.state._tlDomain){const t=CE2.w.location.hostname;if(n.re.ipHost.test(t)||!/\./.test(t))CE2.state._tlDomain=t;else if(e.CE_COOKIE_DOMAIN&&new RegExp(`(^|\\.)${e.CE_COOKIE_DOMAIN.replace(/\./g,"\\.")}$`,"i").test(t))CE2.state._tlDomain=`.${e.CE_COOKIE_DOMAIN}`;else if(CE2.site?.cookieDomain)CE2.state._tlDomain=`.${CE2.site.cookieDomain}`;else{let e;const i=t.split(".");for(e=i.length-1;e>=0;e--){const t=`.${i.slice(e).join(".")}`;if(k("_ce.gtld",t)){CE2.state._tlDomain=t;break}}}}return CE2.state._tlDomain},_=function(e,t,i){i||(i={});const s=encodeURIComponent,n=i.path||"/",r=i.domain||b();let o=null;i.expires?o=i.expires:i.expiresIn?o=new Date((new Date).getTime()+1e3*i.expiresIn):i.expiresInDays&&(o=new Date((new Date).getTime()+86400*i.expiresInDays*1e3)),null==t&&(o=new Date(0),t="");const c=[`${s(e)}=${s(t)}`];c.push(`path=${n}`),CE2.w.parent!==CE2.w&&"https:"===CE2.w.location.protocol?(c.push("SameSite=None"),c.push("Secure")):(c.push("SameSite=Strict"),CE2.site?.settings?.useSecureCookies&&c.push("Secure")),r&&c.push(`domain=${r}`),o&&c.push(`expires=${o.toUTCString()}`),a.Ew.write(c.join(";"),{key:e,value:`${s(e)}=${s(t)};`})},I=function(e,t){_(e,null,t)},k=(e,t)=>{_(e,"1",{domain:t});const i=a.Ew.read();return!!(i&&i.indexOf&&i.indexOf(e)>-1)&&(I(e,{domain:t}),!0)},T=()=>new CE2.URL((()=>{let{referrer:e}=CE2.d;try{!e&&CE2.d.location.ancestorOrigins&&([e]=CE2.d.location.ancestorOrigins)}catch(e){(0,r.Yz)("Referer error",e)}return e})()).getDomain(),N=e=>{const t=CE2.d.createElement("a");return t.href=`http://${e}/`,t.hostname},R=e=>{let t,i;for(i=0;t=e[i++];)if(s=N(t.name),r=CE2.w.location.hostname,n.re.ipHost.test(s)?s===r:r.toLowerCase().endsWith(s.toLowerCase())||r.toLowerCase().endsWith(`.${s.toLowerCase}`))return t;var s,r},A=function(e,t,i=!1){if("undefined"==typeof CE_USER_COMMON_SCRIPT_URL)return void(0,r.Yz)("Inline Worker is not supported: CE_USER_SCRIPT_URL not defined");if("undefined"==typeof CE_USER_THIRDPARTY_SCRIPT_URL)return void(0,r.Yz)("Inline Worker is not supported: CE_USER_THIRDPARTY_SCRIPT_URL not defined");const s=[],n=["CE_DEBUG","CE_TEST_MODE"];for(let e=0;e{}),!0);e?(e.terminate(),CE2.state._inws=!0):CE2.state._inws=!1}catch(e){CE2.state._inws=!1}return CE2.state._inws},O=function(e,t,i=!1){try{return A(e,t,i)}catch(e){(0,r.Yz)(`Inline Worker is not supported: ${e.message}`)}},$=function(e){if("undefined"==typeof window)return CE2.s[e];try{const t="ce_proto_iframe";let i=document.getElementById(t);return i||(i=document.createElement("iframe"),i.id=t,i.title="CrazyEgg Tracking iframe",i.style.display="none",i.setAttribute("aria-hidden","true"),document.documentElement.appendChild(i)),i.contentWindow[e]}catch(t){return(0,r.Yz)("Clean Prototype error",t),window[e]}},P=function(e){return!!e&&(c||(c=$("Function")),/\{\s+\[native code\]/.test(c.prototype.toString.call(e)))},x=function(e){let t=Object.getOwnPropertyNames(e);for(let i=0,s=t;i{const{tracker:i}=CE2;i&&i.customEvent&&i.customEvent(e,t)},L=e=>CE2.tracker?.[e];let H;const U=(e=null)=>{H=e||performance.now()},M=["utm_source","utm_medium","utm_term","utm_content","utm_campaign"],B=e=>{let t,i=!1;const s=[];if(t=new CE2.URL(e||window.location.href).qs)for(let e=0;e=0},J=function(e){return e.source||e.view||e.srcElement.ownerDocument.parentWindow},Q=function(e){let t;return t=CE2.ieVersion&&(CE2.ieVersion<9||CE2.ieQuirksMode)?{1:"l",2:"r",4:"m"}:{0:"l",1:"m",2:"r"},t[e.button]}},98:(e,t,i)=>{"use strict";i.d(t,{mc:()=>h,hh:()=>f,vJ:()=>E,Ew:()=>p,mr:()=>l,VK:()=>d,fY:()=>u});var s=i(8401),n=i(884);class r{constructor(e){this.storeName=e,CE2.w&&CE2.w.indexedDB&&(this.dbPromise=this.openDB())}get isAvailable(){return!!CE2.w.indexedDB}async openDB(){return new Promise((e=>{const t=CE2.w.indexedDB.open(this.storeName,1);t.onupgradeneeded=e=>{const t=e.target.result;t.objectStoreNames.contains(this.storeName)||t.createObjectStore(this.storeName,{keyPath:"id"})},t.onsuccess=t=>{const i=t.target.result;e(i)},t.onerror=t=>{(0,n.Yz)(`error opening database ${t.target?.errorCode}`),e()}}))}async readAll(){if(this.dbPromise)return this.dbPromise.then((e=>e?new Promise(((t,i)=>{let s=e.transaction([this.storeName],"readonly");const r=s.objectStore(this.storeName);s=r.getAll(),s.onsuccess=e=>{t(e.target.result)},s.onerror=function(e){(0,n.Yz)(`error opening database ${e.target.errorCode}`),i(e.target)}})):[]))}async store(e){if(this.dbPromise)return this.dbPromise.then((t=>{if(t)return new Promise(((i,s)=>{const r=t.transaction([this.storeName],"readwrite"),o=r.objectStore(this.storeName);r.onsuccess=e=>{i(e.target.result)},r.onerror=function(e){(0,n.Yz)(`error storing records ${e.target.errorCode}`),s(e.target)},e.forEach((e=>{o.put(e)}))}))}))}async clear(){if(this.dbPromise)return this.dbPromise.then((e=>{if(e)return new Promise(((t,i)=>{let s=e.transaction([this.storeName],"readwrite");const r=s.objectStore(this.storeName);s=r.clear(),s.onsuccess=e=>{t(e.target.result)},s.onerror=function(e){(0,n.Yz)(`error clearing store ${e.target.errorCode}`),i(e.target)}}))}))}}const o="cec",a={STANDARD:"standard",DELAYED:"delayed"},c=new s.v;function l(){return Object.values(a).includes(CE2.w?.CE_COOKIE_MODE)?CE2.w.CE_COOKIE_MODE:a.STANDARD}function d(){if(l()===a.STANDARD)return!0;const e=CE2.d.cookie.split("; ").map((e=>e.split("="))).find((e=>e[0]===o));return e&&"1"===e[1]}function u(...e){const t=2===e.length&&e[0],i=2===e.length?e[1]:e[0];return(...e)=>"function"==typeof t&&i&&t(...e)||d()?i(...e):void c.once("consent",(t=>{t&&i(...e)}))}class h{constructor(e){this.storeName=e,this.state=[],c.on("consent",(e=>{e&&this.sync()}))}async readAll(){return d()?this.instance().readAll():this.state}async store(e){return d()?this.instance().store(e):this.state=e}async clear(){d()?await this.instance().clear():this.state={}}async sync(){await this.instance().store(this.state)}instance(){return this.db?this.db:this.db=new r(this.storeName)}}class g{constructor(e){c.on("consent",(e=>{e&&this.sync()})),this.state={},this.prototype=e}write(e,t){d()?this.prototype.setItem(e,t):this.state[e]=t}read(e){return d()?this.prototype.getItem(e):this.state[e]}remove(e){d()?this.prototype.removeItem(e):delete this.state[e]}sync(){Object.keys(this.state).forEach((e=>{this.prototype.setItem(e,this.state[e])}))}clear(){this.state={}}}const p=new class{constructor(){CE2BH.defineProperty(this,"currentValue",{}),CE2BH.defineProperty(this,"currentFullValue",{})}write(e,{key:t,value:i}){return d()?CE2.d.cookie=e:i.endsWith("=;")?(delete this.currentFullValue[t],void delete this.currentValue[t]):(this.currentFullValue[t]=e,void(this.currentValue[t]=i))}read(){return d()?CE2.d.cookie:Object.values(this.currentValue).join(" ")}sync(){Object.values(this.currentFullValue).forEach((e=>{CE2.d.cookie=e})),this.currentFullValue={},this.currentValue={}}};function E(e){CE2.state.consent=!!e,c.emit("consent",!!e),CE2.state.consent?(p.write(`${o}=1;`,{key:o,value:"1"}),p.sync()):(p.write(`${o}=;max-age=31536000;`,{key:o,value:""}),p.sync()),(0,n.Yz)(`[Loading] Cookie consent=${CE2.state.consent}`)}function f(e){return new g(e)}},5439:(e,t,i)=>{"use strict";i.d(t,{CT:()=>o,Gw:()=>a,H$:()=>h,MN:()=>l,og:()=>g,ur:()=>u,uw:()=>c});var s=i(8157);const n={intToStr:{},strToInt:{}},r=[],o=e=>"string"==typeof e?e:n&&n.intToStr?n.intToStr[e]:void 0,a=e=>{"number"==typeof e.nid&&"string"==typeof e.id&&(e.nid in n.intToStr||(n.intToStr[e.nid]=e.id,n.strToInt[e.id]=e.nid))},c=(e,t,i)=>s.r.nextGoalConversionValue(e,t,i),l=e=>s.r.setCurrency(e),d=(e,t,i,s)=>{const r="number"==typeof(o=t)?o:n&&n.strToInt?n.strToInt[o]:void 0;var o;"number"==typeof r?e.goalConversion({goalId:r,value:i,triggerId:s||r}):e.codeConversion(t,i)},u=e=>{let t;for(;t=r.shift();)t.dynamic?(delete t.dynamic,e.dynamicGoalConversion(t)):d(e,...t)},h=(e,t,i)=>{CE2.tracker?d(CE2.tracker,e,t,i):r.push([e,t,i])},g=({name:e,value:t}={})=>{CE2.tracker?CE2.tracker.dynamicGoalConversion({name:e,value:t}):r.push({dynamic:!0,name:e,value:t})}},8157:(e,t,i)=>{"use strict";i.d(t,{r:()=>l});var s=i(5832),n=i(9152);const r="gtrk.cnv",o="gtrk.la",a="gtrk.ngv",c="gtrk.c",l={get:e=>n.i.get(e),set:(e,t)=>n.i.set(e,t),del:e=>n.i.del(e),reset(){this.del(r),this.del(o)},alive(){setTimeout((()=>{this.isExpired()&&this.reset(),this.set(o,(+new Date).toString(36))}),100)},isExpired(){const e=parseInt(this.get(o),36);return!!e&&new Date-e>18e5},getConvertedIds(){if(this.isExpired())return[];const e=this.get(r);return e?e.split(",").map((e=>String(e).startsWith("dyn-")?e:parseInt(e,36))).filter((e=>String(e).startsWith("dyn-")||!Number.isNaN(Number(e)))):[]},recordConversion({goalId:e,dynamicId:t}){if(e&&("number"!=typeof e||Number.isNaN(Number(e))))return;if("string"==typeof t&&!t.startsWith("dyn-"))return;const i=this.getConvertedIds();i.includes(e)||i.includes(t)||(s.A.emit("complete",{goal:{id:e}}),i.push(e||t),this.set(r,i.map((e=>String(e).startsWith("dyn-")?e:e.toString(36))).join(",")))},alreadyConverted(e){return this.getConvertedIds().includes(e)},setCurrency(e){this.set(c,e)},getCurrency(){return this.get(c)||CE2.site?.settings?.defaultCurrency},getNextGoalConversionValues(){let e=this.get(a);try{e=e?CE2.Native.JSON.parse(e):{}}catch(t){e=e?CE2.Native.JSON.parse(atob(decodeURIComponent(e))):{}}return e},setNextGoalConversionValues(e){this.set(a,btoa(CE2.Native.JSON.stringify(e)))},nextGoalConversionValue(e,t,i){const s=this.getNextGoalConversionValues(),n=s[e]?.findIndex((e=>e.triggerId==i))??-1;-1===n||t?-1!==n&&t?s[e][n]={value:t,triggerId:i}:t&&(s[e]||(s[e]=[]),s[e].push({value:t,triggerId:i})):s[e].splice(n,1),this.setNextGoalConversionValues(s)},getNextGoalConversionValue(e,t=null){const i=this.getNextGoalConversionValues();let s=i[e]&&i[e].findIndex((e=>e.triggerId==t)),n=i[e]&&i[e][s];n||(s=i[e]&&i[e].findIndex((e=>!e.triggerId)),n=i[e]&&i[e][s]);const r=this.getCurrency();if(n&&!n.value.currency&&r&&(n.value.currency=r),i[e]&&(i[e].splice(s,1),0===i[e].length&&delete i[e]),this.setNextGoalConversionValues(i),n)return n.value}}},9056:(e,t,i)=>{"use strict";i.d(t,{O:()=>o,s:()=>r});var s=i(623),n=i(884);function r(e){if("string"!=typeof e)return NaN;const t=e.lastIndexOf(","),i=e.lastIndexOf(".");let s,n=e.replace(/[^0-9.,]/g,"");if(t>-1&&i>-1)s=t>i?",":".";else if(t>-1||i>-1){const e=t>-1?",":".",i=n.split(e);2===i.length&&i[1].length<3&&(s=e)}return s?(n=n.replace(new RegExp(`[^0-9\\${s}]`,"g"),""),n=n.replace(new RegExp(`\\${s}`),".")):n=n.replace(/[^0-9]/g,""),parseFloat(n)}class o{constructor(e,t=[]){this.goals=(e||[]).filter((e=>{if(!e.triggers)return!1;for(let t=0,i=e.triggers;t{const s=r(t.innerText);if("number"!=typeof s||Number.isNaN(s))return;const a={worth:s,currency:c};(0,n.Yz)("[Goals] Goal target value detected",{goal:i,trigger:o,original:t.innerText,value:a}),a&&e({type:"goalValue",value:a,goal:i,trigger:o})}))}}}}initMutationObserver(){this.mutationObserver||this.goals.length&&(this.mutationObserver=new MutationObserver(this.onMutation.bind(this)),this.mutationObserver.observe(CE2.d,{subtree:!0,childList:!0,characterData:!0}))}onMutation(e){for(let t=0;t{"use strict";function s(){return CE2.tracker}function n(e){if(!e)return;CE2.IDENTIFIER=e;const t=s();t?t?.identify(e):CE2.visitorTracker&&CE2.visitorTracker.identify(e)}function r(){CE2.IDENTIFIER=null;const e=s();e?e.clearIdentity():CE2.visitorTracker&&CE2.visitorTracker.clearIdentity()}function o(e,t){const i=s();i?.increaseSessionWorth(e,t)}function a(e,t){const i=s();i?.decreaseSessionWorth(e,t)}function c(e,t){const i=s();i?.setSessionWorth(e,t)}i.d(t,{LG:()=>c,LV:()=>a,SY:()=>r,ls:()=>n,vn:()=>o})},1619:(e,t,i)=>{"use strict";i.d(t,{LG:()=>o,LV:()=>c,Ok:()=>r,vn:()=>a});var s=i(9152);function n(){const e=s.i.get("swk");if(e){const[t]=e.split("|");return parseFloat(t)||0}return 0}function r(){const e=s.i.get("swk");if(e){const[t,i]=e.split("|");return{number:parseFloat(t)||0,currency:i||"USD"}}return{number:0,currency:"USD"}}const o=(e,t)=>(s.i.set("swk",[e,t].join("|")),e),a=(e,t)=>{const i=n();return o(i+e,t)},c=(e,t)=>{let i=n()-e;return i<0&&(i=0),o(i,t)}},1814:(e,t,i)=>{"use strict";i.d(t,{A:()=>r});var s=i(4794),n=i(4933);class r{constructor(){this.trackURL=CE2.data.v11_tracking_dest,this.visitor=CE2.visitorTracker,this.visitorID=CE2.visitorTracker.getId(),this.bufferQueue=[],this.bufferQueueTimeout,this.bufferTimeoutInterval=CE2.data.buffer_timeout_interval||2e3}makeId(){return(0,s.M4)(0,1)}getTimezone(){return"undefined"!=typeof Intl&&"function"==typeof Intl.DateTimeFormat&&"function"==typeof Intl.DateTimeFormat().resolvedOptions&&Intl.DateTimeFormat().resolvedOptions().timeZone||""}newEvent(e,t={}){const i=t.attributes||[];for(let e=0;e{this.processBuffer({scheduleTimeout:e.scheduleTimeout,sendBeacon:e.sendBeacon})}),this.bufferTimeoutInterval))}}},623:(e,t,i)=>{"use strict";i.d(t,{DM:()=>o,V4:()=>r,_9:()=>c});var s=i(661),n=i(5909);const r=(e,t,{debugCallback:i}={})=>{let s="";return e.indexOf("*")>-1&&(s="*"),(0,n.$)(e,t,s,null,null,i)},o={visited_page(e,{debugCallback:t}={}){const i=CE2.w.location.href;return r(e,i,{debugCallback:t})},device:e=>(0,s.D)(e),referrer(e,{debugCallback:t}={}){const i=CE2.d.referrer;return i===e&&""===i||r(e,i,{debugCallback:t})}},a=(e,{debugCallback:t,operand:i}={})=>{for(let s=0,n=e.values;s>16)+(t>>16)+(i>>16)<<16|65535&i}function o(e,t,i,s,n,o){return r((a=r(r(t,e),r(s,o)))<<(c=n)|a>>>32-c,i);var a,c}function a(e,t,i,s,n,r,a){return o(t&i|~t&s,e,t,n,r,a)}function c(e,t,i,s,n,r,a){return o(t&s|i&~s,e,t,n,r,a)}function l(e,t,i,s,n,r,a){return o(t^i^s,e,t,n,r,a)}function d(e,t,i,s,n,r,a){return o(i^(t|~s),e,t,n,r,a)}function u(e,t){var i,s,n,o,u;e[t>>5]|=128<>>9<<4)]=t;var h=1732584193,g=-271733879,p=-1732584194,E=271733878;for(i=0;i>5]>>>t%32&255);return i}function g(e){var t,i=[];for(i[(e.length>>2)-1]=void 0,t=0;t>5]|=(255&e.charCodeAt(t/8))<>>4&15)+s.charAt(15&t);return n}function E(e){return unescape(encodeURIComponent(e))}function f(e){return function(e){return h(u(g(e),8*e.length))}(E(e))}function m(e,t){return function(e,t){var i,s,n=g(e),r=[],o=[];for(r[15]=o[15]=void 0,n.length>16&&(n=u(n,8*e.length)),i=0;i<16;i+=1)r[i]=909522486^n[i],o[i]=1549556828^n[i];return s=u(r.concat(g(t)),512+8*t.length),h(u(o.concat(s),640))}(E(e),E(t))}function C(e,t,i){return t?i?m(t,e):function(e,t){return p(m(e,t))}(t,e):i?f(e):p(f(e))}void 0===(s=function(){return C}.call(t,i,t,e))||(e.exports=s)}()},8423:(e,t,i)=>{"use strict";function s(){if(!(typeof globalThis.CE2>"u"))return globalThis.CE2}i.d(t,{_:()=>n});const n={JSON:()=>{const e=s();return e?.Native?.JSON?e.Native.JSON:JSON},Array:()=>{const e=s();return e?.Native?.Array?e.Native.Array:Array}}},6385:(e,t,i)=>{"use strict";i.d(t,{B5:()=>a,EW:()=>c,IC:()=>o,Pl:()=>r});var s=i(8423);function n(e,t=[document]){const i=e.shift(),s=t.flatMap((e=>e&&e.nodeType===Node.DOCUMENT_NODE?[...e.querySelectorAll(i)]:e.shadowRoot?[...e.shadowRoot.querySelectorAll(i)]:[]));return e.length?n(e,s):s}function r(e){try{const t=s._.JSON().parse(e);if("nested"===t.type)return t.selectors}catch{}return[e]}function o(e,t=[document]){return n(r(e),t)}function a(e,t,i){const s=r(t);let o=s.pop();const a=s.length?n([...s],[e.ownerDocument]).map((e=>e.shadowRoot||e)):[e.ownerDocument];return!(s.length&&!a.some((t=>t&&t===e.getRootNode())))&&(i&&(o+=`,${o} *`),e.matches(o))}function c(e){return e.composed?e.composedPath()[0]:e.target}}},e=>{var t,i=(t=1959,e(e.s=t)),s=CE2="undefined"==typeof CE2?{}:CE2;for(var n in i)s[n]=i[n];i.__esModule&&Object.defineProperty(s,"__esModule",{value:!0})}]);if(CE2.benchmark.start("navigation|crazyegg|common"),CE2.benchmark.start("navigation|crazyegg|common|start"),CE2.start=function(){CE2.domReadySetup(),CE2.onDOMReady(()=>{CE2.benchmark.stop("navigation|crazyegg|common|start"),CE2.userDataMain()})},CE2.data&&CE2.data.error_tracking)try{CE2.debug("[Loading] Starting Error Tracking"),CE2.errorTracking.listen()}catch(a){CE2.debug(a)}CE2.autoStart?CE2.start():CE2.debug("[Loading] Autostart disabled"),"function"==typeof CE_READY?CE2.onDOMReady(CE_READY):"object"==typeof CE_READY&&CE2.onDOMReady(()=>{CE2.each(CE_READY,a=>{if("function"==typeof a)try{a()}catch(a){CE2.debug("[Loading] CE2.userMain error:"),CE2.debug(a)}})});